forked from MagicBane/Server
pets follow owners through teleporting
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user