Unicopia/src/main/java/com/minelittlepony/unicopia/ability/KirinCastingAbility.java
2024-04-08 20:46:06 +01:00

17 lines
593 B
Java

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;
}
}