v0.6.1: fixed evil eyes being able to shoot through walls in rare cases

This commit is contained in:
Evan Debenham 2017-08-05 02:52:37 -04:00
parent caf6f5ca50
commit dcf59af491

View File

@ -133,7 +133,8 @@ public class Eye extends Mob {
} else {
spend( attackDelay() );
beam = new Ballistica(pos, beamTarget, Ballistica.STOP_TERRAIN);
if (Dungeon.visible[pos] || Dungeon.visible[beam.collisionPos] ) {
sprite.zap( beam.collisionPos );
return false;