From 6a09a3fd4466bf3410bd527154c23f3038ea4c6f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 23 Jun 2024 20:08:46 -0500 Subject: [PATCH] pets follow owners through teleporting --- src/engine/mobileAI/MobAI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 25d17666..dba43220 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -643,6 +643,8 @@ public class MobAI { if (mob.playerAgroMap.isEmpty()) { if(mob.getCombatTarget() != null) mob.setCombatTarget(null); + if(mob.isPet()) + mob.teleport(mob.getOwner().loc); return; }