Browse Source

early exit for pets attacking a null target

postwipe-mines
FatBoy-DOTC 5 months ago
parent
commit
d22ba7b89d
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -175,6 +175,8 @@ public class MobAI { @@ -175,6 +175,8 @@ public class MobAI {
public static void attackMob(Mob mob, Mob target) {
try {
if(mob == null || target == null)
return;
if (mob.getRange() >= 30 && mob.isMoving())
return;

Loading…
Cancel
Save