From 56226c71ebeced6091c5f44b22fd22fbe1f28ff8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 8 Jan 2025 20:41:03 -0600 Subject: [PATCH] Easy AI --- src/engine/mobileAI/BehaviourFiles/PlayerPet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/BehaviourFiles/PlayerPet.java b/src/engine/mobileAI/BehaviourFiles/PlayerPet.java index 42574107..b60c9cc1 100644 --- a/src/engine/mobileAI/BehaviourFiles/PlayerPet.java +++ b/src/engine/mobileAI/BehaviourFiles/PlayerPet.java @@ -22,7 +22,7 @@ public class PlayerPet { return; } - if(!pet.playerAgroMap.contains(pet.getOwner().getObjectUUID())){ + if(!WorldGrid.getObjectsInRangePartial(pet.loc, MBServerStatics.CHARACTER_LOAD_RANGE,1).contains(pet.getOwner())){ pet.teleport(pet.getOwner().loc); return; }