From ffd65b3641de84f9f3ad3d4287cb79a10ab4708c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 21 May 2024 17:42:19 -0500 Subject: [PATCH] mob range min set to 6 --- src/engine/mobileAI/MobAI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {