Browse Source

Setloc to spawn minion.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
3bca76d4c8
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -662,11 +662,11 @@ public class Mob extends AbstractIntelligenceAgent { @@ -662,11 +662,11 @@ public class Mob extends AbstractIntelligenceAgent {
minionMobile.BehaviourType = Enum.MobBehaviourType.GuardMinion;
minionMobile.guardedCity = guardCaptain.guardedCity;
minionMobile.parentZoneUUID = guardCaptain.parentZoneUUID;
MovementManager.translocate(minionMobile, guardCaptain.bindLoc, guardCaptain.region);
minionMobile.bindLoc = guardCaptain.bindLoc;
minionMobile.runAfterLoad();
minionMobile.despawned = true;
minionMobile.setLoc(minionMobile.bindLoc);
minionMobile.despawn();
//grab equipment and name from minionbase.

Loading…
Cancel
Save