diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 3651840b..7377d70d 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -109,17 +109,17 @@ public enum PowersManager { ArrayList 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);