Fixed abilities still playing their cooldown effect even if they failed

This commit is contained in:
Sollace 2019-02-07 15:47:06 +02:00
parent 43daaf0f6e
commit c0e8468ee8

View file

@ -112,7 +112,9 @@ class PlayerAbilityDelegate implements IAbilityReceiver, IUpdatable<EntityPlayer
cooldown = ability.getCooldownTime(player);
if (player.isClientPlayer()) {
activateAbility(ability);
if (!activateAbility(ability)) {
cooldown = 0;
}
}
}