|
|
@ -741,7 +741,10 @@ public class MobAI { |
|
|
|
return; |
|
|
|
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()); |
|
|
|
float distanceSquared = mob.getLoc().distanceSquared2D(mob.getCombatTarget().getLoc()); |
|
|
|
|
|
|
|
|
|
|
|
if(mob.isMoving() && distanceSquared < rangeSquared - 50) { |
|
|
|
if(mob.isMoving() && distanceSquared < rangeSquared - 50) { |
|
|
|