Browse Source

pets follow owners through teleporting

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
6a09a3fd44
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -643,6 +643,8 @@ public class MobAI { @@ -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;
}

Loading…
Cancel
Save