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

View File

@@ -197,6 +197,7 @@ public class CrystalSpire extends Mob {
abilityCooldown += ABILITY_CD;
spend(GameMath.gate(TICK, (int)Math.ceil(Dungeon.hero.cooldown()), 3*TICK));
Dungeon.hero.interrupt();
} else {
abilityCooldown -= 1;
spend(TICK);

View File

@@ -57,6 +57,7 @@ import com.watabou.noosa.audio.Music;
import com.watabou.noosa.audio.Sample;
import com.watabou.utils.Bundle;
import com.watabou.utils.Callback;
import com.watabou.utils.GameMath;
import com.watabou.utils.PathFinder;
import com.watabou.utils.Random;
@@ -311,7 +312,8 @@ public abstract class Elemental extends Mob {
}
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;
} else {
rangedCooldown = 1;