Browse Source

Contract powers loaded first to preserve ordering.

combat-2
MagicBot 1 year ago
parent
commit
0e12dd4874
  1. 8
      src/engine/gameManager/PowersManager.java

8
src/engine/gameManager/PowersManager.java

@ -109,17 +109,17 @@ public enum PowersManager { @@ -109,17 +109,17 @@ public enum PowersManager {
ArrayList<MobPowerEntry> powerEntries;
if (mobile.agentType.equals(AIAgentType.GUARDMINION))
powerEntries = PowersManager._allMobPowers.get(((Mob) mobile.guardCaptain).loadID);
powerEntries = PowersManager._allMobPowers.get(mobile.guardCaptain.contractUUID);
else
powerEntries = PowersManager._allMobPowers.get(mobile.loadID);
powerEntries = PowersManager._allMobPowers.get(mobile.contractUUID);
if (powerEntries != null)
mobPowers.addAll(powerEntries);
if (mobile.agentType.equals(AIAgentType.GUARDMINION))
powerEntries = PowersManager._allMobPowers.get(mobile.guardCaptain.contractUUID);
powerEntries = PowersManager._allMobPowers.get(((Mob) mobile.guardCaptain).loadID);
else
powerEntries = PowersManager._allMobPowers.get(mobile.contractUUID);
powerEntries = PowersManager._allMobPowers.get(mobile.loadID);
if (powerEntries != null)
mobPowers.addAll(powerEntries);

Loading…
Cancel
Save