v2.0.1: fixed updated beam logic not using beamTarget pos

This commit is contained in:
Evan Debenham
2023-03-26 15:46:46 -04:00
committed by Evan Debenham
parent fc54b62b6b
commit a4f6cdbcb3

View File

@@ -125,7 +125,7 @@ public class Eye extends Mob {
@Override
protected boolean doAttack( Char enemy ) {
beam = new Ballistica(pos, enemy.pos, Ballistica.STOP_SOLID);
beam = new Ballistica(pos, beamTarget, Ballistica.STOP_SOLID);
if (beamCooldown > 0 || (!beamCharged && !beam.subPath(1, beam.dist).contains(enemy.pos))) {
return super.doAttack(enemy);
} else if (!beamCharged){