From 645aec853ed6fbc31a7b3041fb68083deccd5a15 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 26 Aug 2023 15:21:50 -0400 Subject: [PATCH] Bindloc not adjusted for pets. --- src/engine/objects/Mob.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 92df85a0..e7d347b2 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1675,9 +1675,13 @@ public class Mob extends AbstractIntelligenceAgent { // Handle Mobiles within buildings - if (this.building == null) - this.bindLoc = this.parentZone.getLoc().add(this.bindLoc); - else { + if (this.building == null) { + + // Do not adjust a pet's bindloc. + + if (!this.behaviourType.equals(MobBehaviourType.Pet1)) + this.bindLoc = this.parentZone.getLoc().add(this.bindLoc); + } else { // Mobiles inside buildings are offset from it not the zone // with the exceptions being mobiles