v2.2.1: new quest bosses now interrupt hero when telepgraphing attacks
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user