From e5439e6bcd1ead6493dd9f124145e669d114f209 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 10 Aug 2016 10:18:50 -0400 Subject: [PATCH] v0.4.1a: more bugfixes for evil eyes --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java index 08a9d4c96..ff2956b52 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java @@ -109,7 +109,7 @@ public class Eye extends Mob { @Override protected Char chooseEnemy() { - if (beamCharged) return enemy; + if (beamCharged && enemy != null) return enemy; return super.chooseEnemy(); } @@ -241,7 +241,7 @@ public class Eye extends Mob { @Override public boolean act(boolean enemyInFOV, boolean justAlerted) { //always attack if the beam is charged, no exceptions - if (beamCharged) + if (beamCharged && enemy != null) enemyInFOV = true; return super.act(enemyInFOV, justAlerted); }