Unicopia/src/main/java/com/minelittlepony/unicopia/ability/KirinCastingAbility.java

18 lines
593 B
Java
Raw Normal View History

2023-10-10 00:43:59 +02:00
package com.minelittlepony.unicopia.ability;
import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType;
import com.minelittlepony.unicopia.entity.player.Pony;
import net.minecraft.particle.ParticleTypes;
public class KirinCastingAbility extends UnicornCastingAbility {
@Override
public void coolDown(Pony player, AbilitySlot slot) {
player.spawnParticles(ParticleTypes.FLAME, 5);
}
@Override
protected boolean canCast(SpellType<?> type) {
return type == SpellType.FIRE_BOLT || type == SpellType.FLAME || type == SpellType.INFERNAL;
}
}