From be119938fcdacfc43c044f1d47c5a67775d81e96 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Aug 2016 21:56:45 -0400 Subject: [PATCH] v0.4.1a: fixed evil eyes not respecting blindness --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java index ca8f99b9a..4543216f2 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Eye.java @@ -90,7 +90,7 @@ public class Eye extends Mob { if (beamCooldown == 0) { Ballistica aim = new Ballistica(pos, enemy.pos, Ballistica.STOP_TERRAIN); - if (enemy.invisible == 0 && aim.subPath(1, aim.dist).contains(enemy.pos)){ + if (enemy.invisible == 0 && Level.fieldOfView[enemy.pos] && aim.subPath(1, aim.dist).contains(enemy.pos)){ beam = aim; return true; } else