mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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.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();
|
||||
|
|
Loading…
Reference in a new issue