diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index d75ce99f..29fec4ef 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -741,7 +741,10 @@ public class MobAI { return; } } - float rangeSquared = mob.getRange() * mob.getRange(); + float range = mob.getRange(); + if(range < 6) + range = 6; + float rangeSquared = range * range; float distanceSquared = mob.getLoc().distanceSquared2D(mob.getCombatTarget().getLoc()); if(mob.isMoving() && distanceSquared < rangeSquared - 50) {