mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-25 14:14:32 +01:00
Only play kirin rage theme to the kirin themselves
This commit is contained in:
parent
3f7a9a0a78
commit
ec136e6045
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ public class RageAbilitySpell extends AbstractSpell {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (source instanceof Pony pony) {
|
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());
|
InteractionManager.instance().playLoopingSound(source.asEntity(), InteractionManager.SOUND_KIRIN_RAGE, source.asWorld().random.nextLong());
|
||||||
}
|
}
|
||||||
Bar energyBar = pony.getMagicalReserves().getEnergy();
|
Bar energyBar = pony.getMagicalReserves().getEnergy();
|
||||||
|
|
Loading…
Reference in a new issue