v0.4.1a: fixed evil eyes not respecting blindness

This commit is contained in:
Evan Debenham 2016-08-08 21:56:45 -04:00
parent 4fe2eb1ad0
commit be119938fc

View File

@ -90,7 +90,7 @@ public class Eye extends Mob {
if (beamCooldown == 0) { if (beamCooldown == 0) {
Ballistica aim = new Ballistica(pos, enemy.pos, Ballistica.STOP_TERRAIN); 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; beam = aim;
return true; return true;
} else } else