From 0e12dd4874b634a460de84cda603235b062fe475 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 1 Sep 2023 12:57:20 -0400 Subject: [PATCH] Contract powers loaded first to preserve ordering. --- src/engine/gameManager/PowersManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);