v2.1.0: fixed regular eyes meleeing at a distance in rare cases

This commit is contained in:
Evan Debenham
2023-04-21 13:48:42 -04:00
parent e9255998a7
commit 0236abb505

View File

@@ -96,7 +96,7 @@ public class Eye extends Mob {
if (enemy.invisible == 0 && !isCharmedBy(enemy) && fieldOfView[enemy.pos]
&& (super.canAttack(enemy) || aim.subPath(1, aim.dist).contains(enemy.pos))){
beam = aim;
beamTarget = aim.collisionPos;
beamTarget = enemy.pos;
return true;
} else {
//if the beam is charged, it has to attack, will aim at previous location of target.