|
|
|
@ -741,7 +741,10 @@ public class MobAI {
@@ -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) { |
|
|
|
|