Browse Source

Setloc to spawn minion.

combat-2
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