Browse Source

Exception for siege when slotting.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
039e55673b
  1. 6
      src/engine/objects/Mob.java

6
src/engine/objects/Mob.java

@ -890,16 +890,12 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.building != null) { if (this.building != null) {
// Siege mobiles don't have contracts.
if (this.contract == null) {
// Mobiles inside buildings are offset from it not the zone // Mobiles inside buildings are offset from it not the zone
this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon); this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
this.bindLoc = this.building.getLoc().add(this.bindLoc); this.bindLoc = this.building.getLoc().add(this.bindLoc);
} else if (this.contract != null || this.isSiege)
NPCManager.slotCharacterInBuilding(this); NPCManager.slotCharacterInBuilding(this);
} }

Loading…
Cancel
Save