v2.5.3: DM-300 can no longer use an ability right out of supercharge

This commit is contained in:
Evan Debenham
2024-09-25 13:59:53 -04:00
parent e03b98ef07
commit c8e7350e3b

View File

@@ -535,6 +535,9 @@ public class DM300 extends Mob {
supercharged = false; supercharged = false;
((DM300Sprite)sprite).updateChargeState(false); ((DM300Sprite)sprite).updateChargeState(false);
//adjust turns since last ability to prevent DM immediately using an ability when charge ends
turnsSinceLastAbility = Math.max(turnsSinceLastAbility, MIN_COOLDOWN-3);
if (pylonsActivated < totalPylonsToActivate()){ if (pylonsActivated < totalPylonsToActivate()){
yell(Messages.get(this, "charge_lost")); yell(Messages.get(this, "charge_lost"));
} else { } else {