v0.4.1a: fixed evil eyes not respecting blindness
This commit is contained in:
parent
4fe2eb1ad0
commit
be119938fc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user