diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index bc0e15b2..3651840b 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -108,12 +108,18 @@ public enum PowersManager { ArrayList mobPowers = new ArrayList<>(); ArrayList powerEntries; - powerEntries = PowersManager._allMobPowers.get(mobile.loadID); + if (mobile.agentType.equals(AIAgentType.GUARDMINION)) + powerEntries = PowersManager._allMobPowers.get(((Mob) mobile.guardCaptain).loadID); + else + powerEntries = PowersManager._allMobPowers.get(mobile.loadID); if (powerEntries != null) mobPowers.addAll(powerEntries); - powerEntries = PowersManager._allMobPowers.get(mobile.contractUUID); + if (mobile.agentType.equals(AIAgentType.GUARDMINION)) + powerEntries = PowersManager._allMobPowers.get(mobile.guardCaptain.contractUUID); + else + powerEntries = PowersManager._allMobPowers.get(mobile.contractUUID); if (powerEntries != null) mobPowers.addAll(powerEntries);