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