From 2383b00c8c48ed9ac3c93a1cb53ee4e772ba94b2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 30 Aug 2024 18:38:44 -0500 Subject: [PATCH] mobs recall when out of range of their bind loc --- src/engine/mobileAI/MobAI.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 7c25a90e..86ec7fd6 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -635,9 +635,6 @@ public class MobAI { //check to send mob home for player guards to prevent exploit of dragging guards away and then teleporting - - CheckToSendMobHome(mob); - return; } @@ -655,7 +652,7 @@ public class MobAI { mob.setCombatTarget(null); return; } - + CheckToSendMobHome(mob); if (mob.getCombatTarget() != null) { if (mob.getCombatTarget().isAlive() == false) { @@ -959,7 +956,7 @@ public class MobAI { } } } - } else if (MovementUtilities.inRangeOfBindLocation(mob) == false) { + } else if (!MovementUtilities.inRangeOfBindLocation(mob)) { PowersBase recall = PowersManager.getPowerByToken(-1994153779); PowersManager.useMobPower(mob, mob, recall, 40); @@ -967,6 +964,7 @@ public class MobAI { for (Entry playerEntry : mob.playerAgroMap.entrySet()) PlayerCharacter.getFromCache((int) playerEntry.getKey()).setHateValue(0); + mob.setCombatTarget(null); } } catch (Exception e) { Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: CheckToSendMobHome" + " " + e.getMessage());