From 039e55673b5e17ed3197ab8ec271a5e88c3724bb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 21 Aug 2023 17:00:27 -0400 Subject: [PATCH] Exception for siege when slotting. --- src/engine/objects/Mob.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 6992fcb8..4c4b911c 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -890,16 +890,12 @@ public class Mob extends AbstractIntelligenceAgent { if (this.building != null) { - // Siege mobiles don't have contracts. + // Mobiles inside buildings are offset from it not the zone - if (this.contract == null) { - - // Mobiles inside buildings are offset from it not the zone - - this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon); - this.bindLoc = this.building.getLoc().add(this.bindLoc); + this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon); + this.bindLoc = this.building.getLoc().add(this.bindLoc); - } else + if (this.contract != null || this.isSiege) NPCManager.slotCharacterInBuilding(this); }