mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Fixed abilities still playing their cooldown effect even if they failed
This commit is contained in:
parent
43daaf0f6e
commit
c0e8468ee8
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ class PlayerAbilityDelegate implements IAbilityReceiver, IUpdatable<EntityPlayer
|
|||
cooldown = ability.getCooldownTime(player);
|
||||
|
||||
if (player.isClientPlayer()) {
|
||||
activateAbility(ability);
|
||||
if (!activateAbility(ability)) {
|
||||
cooldown = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue