v2.1.0: enemy misses now interrupt the hero just like hits
This commit is contained in:
@@ -322,6 +322,10 @@ public abstract class Char extends Actor {
|
||||
|
||||
boolean visibleFight = Dungeon.level.heroFOV[pos] || Dungeon.level.heroFOV[enemy.pos];
|
||||
|
||||
if (enemy == Dungeon.hero && Dungeon.hero.damageInterrupt){
|
||||
Dungeon.hero.interrupt();
|
||||
}
|
||||
|
||||
if (enemy.isInvulnerable(getClass())) {
|
||||
|
||||
if (visibleFight) {
|
||||
|
||||
@@ -197,7 +197,7 @@ public class Hero extends Char {
|
||||
private int defenseSkill = 5;
|
||||
|
||||
public boolean ready = false;
|
||||
private boolean damageInterrupt = true;
|
||||
public boolean damageInterrupt = true;
|
||||
public HeroAction curAction = null;
|
||||
public HeroAction lastAction = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user