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