Made ability abort after the counter has been triggered

This commit is contained in:
Vidal committed 2026-02-03 05:57:40 -03:00
1 parent 60b846b35e
commit 4f629c5679
1 file changed
+5 -1
@@ -109,6 +109,11 @@ public class AbilityGuard extends Ability implements IAbilityGuard {
if (tick >= durationTicks) {
signalCompletion();
}
// Just enough to see the counter animation
if (counterTriggered && tick >= counterWindow + 10) {
signalCompletion();
}
}
public void onDamageTaken(EntityLivingBase caster, EntityLivingBase attacker, DamageSource source, float damage) {
@@ -148,7 +153,6 @@ public class AbilityGuard extends Ability implements IAbilityGuard {
}
}
counterTriggered = false;
counterEligible = false;
lastAttacker = null;
lastDamageTaken = 0.0f;