Only play kirin rage theme to the kirin themselves

This commit is contained in:
Sollace 2023-11-25 03:58:55 +00:00
parent 3f7a9a0a78
commit ec136e6045
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -94,7 +94,7 @@ public class RageAbilitySpell extends AbstractSpell {
}
if (source instanceof Pony pony) {
if (source.isClient() && pony.asEntity().getAttackCooldownProgress(0) == 0) {
if (pony.isClientPlayer() && pony.asEntity().getAttackCooldownProgress(0) == 0) {
InteractionManager.instance().playLoopingSound(source.asEntity(), InteractionManager.SOUND_KIRIN_RAGE, source.asWorld().random.nextLong());
}
Bar energyBar = pony.getMagicalReserves().getEnergy();