Browse Source

Minion added to map after runafterload.

combat-2
MagicBot 1 year ago
parent
commit
5862039a00
  1. 5
      src/engine/objects/Mob.java

5
src/engine/objects/Mob.java

@ -522,10 +522,11 @@ public class Mob extends AbstractIntelligenceAgent { @@ -522,10 +522,11 @@ public class Mob extends AbstractIntelligenceAgent {
//siegeMinion.spawnTime = (60 * 15);
siegeMinion.spawnTime = 15;
siegeMinion.runAfterLoad();
int slot = artyCaptain.getSiegeMinionMap().size() + 1;
artyCaptain.getSiegeMinionMap().put(siegeMinion,slot);
artyCaptain.getSiegeMinionMap().put(siegeMinion, slot);
siegeMinion.runAfterLoad();
DbManager.addToCache(siegeMinion);
siegeMinion.setLoc(siegeMinion.bindLoc);
siegeMinion.despawn();

Loading…
Cancel
Save