Browse Source

Bindloc not adjusted for pets.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
645aec853e
  1. 10
      src/engine/objects/Mob.java

10
src/engine/objects/Mob.java

@ -1675,9 +1675,13 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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

Loading…
Cancel
Save