mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Made ability abort after the counter has been triggered
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user