v0.4.1a: more bugfixes for evil eyes

This commit is contained in:
Evan Debenham 2016-08-10 10:18:50 -04:00
parent 4bd5a10897
commit e5439e6bcd

View File

@ -109,7 +109,7 @@ public class Eye extends Mob {
@Override @Override
protected Char chooseEnemy() { protected Char chooseEnemy() {
if (beamCharged) return enemy; if (beamCharged && enemy != null) return enemy;
return super.chooseEnemy(); return super.chooseEnemy();
} }
@ -241,7 +241,7 @@ public class Eye extends Mob {
@Override @Override
public boolean act(boolean enemyInFOV, boolean justAlerted) { public boolean act(boolean enemyInFOV, boolean justAlerted) {
//always attack if the beam is charged, no exceptions //always attack if the beam is charged, no exceptions
if (beamCharged) if (beamCharged && enemy != null)
enemyInFOV = true; enemyInFOV = true;
return super.act(enemyInFOV, justAlerted); return super.act(enemyInFOV, justAlerted);
} }