v2.2.1: new quest bosses now interrupt hero when telepgraphing attacks

This commit is contained in:
Evan Debenham
2023-10-24 12:01:02 -04:00
parent 735515df65
commit 8473bc27ef
2 changed files with 4 additions and 1 deletions
@@ -197,6 +197,7 @@ public class CrystalSpire extends Mob {
abilityCooldown += ABILITY_CD; abilityCooldown += ABILITY_CD;
spend(GameMath.gate(TICK, (int)Math.ceil(Dungeon.hero.cooldown()), 3*TICK)); spend(GameMath.gate(TICK, (int)Math.ceil(Dungeon.hero.cooldown()), 3*TICK));
Dungeon.hero.interrupt();
} else { } else {
abilityCooldown -= 1; abilityCooldown -= 1;
spend(TICK); spend(TICK);
@@ -57,6 +57,7 @@ import com.watabou.noosa.audio.Music;
import com.watabou.noosa.audio.Sample; import com.watabou.noosa.audio.Sample;
import com.watabou.utils.Bundle; import com.watabou.utils.Bundle;
import com.watabou.utils.Callback; import com.watabou.utils.Callback;
import com.watabou.utils.GameMath;
import com.watabou.utils.PathFinder; import com.watabou.utils.PathFinder;
import com.watabou.utils.Random; import com.watabou.utils.Random;
@@ -311,7 +312,8 @@ public abstract class Elemental extends Mob {
} }
GLog.n(Messages.get(this, "charging")); GLog.n(Messages.get(this, "charging"));
spend(TICK); spend(GameMath.gate(TICK, (int)Math.ceil(Dungeon.hero.cooldown()), 3*TICK));
Dungeon.hero.interrupt();
return true; return true;
} else { } else {
rangedCooldown = 1; rangedCooldown = 1;