Browse Source

Minion added to map after runafterload.

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

3
src/engine/objects/Mob.java

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

Loading…
Cancel
Save