Browse Source

pets follow owners through teleporting

lakebane-new
FatBoy-DOTC 5 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 {
if (mob.playerAgroMap.isEmpty()) { if (mob.playerAgroMap.isEmpty()) {
if(mob.getCombatTarget() != null) if(mob.getCombatTarget() != null)
mob.setCombatTarget(null); mob.setCombatTarget(null);
if(mob.isPet())
mob.teleport(mob.getOwner().loc);
return; return;
} }

Loading…
Cancel
Save