From 3c610a85647ad3700dd3830ffab7cf646784f238 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 6 Jun 2022 19:21:39 -0500 Subject: [PATCH] Fix to mob/guard static power lookup --- src/engine/ai/MobileFSM.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 4861fa4e..78b4dccd 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -16,10 +16,7 @@ import engine.Enum.GameObjectType; import engine.InterestManagement.WorldGrid; import engine.ai.utilities.CombatUtilities; import engine.ai.utilities.MovementUtilities; -import engine.gameManager.BuildingManager; -import engine.gameManager.CombatManager; -import engine.gameManager.MovementManager; -import engine.gameManager.PowersManager; +import engine.gameManager.*; import engine.math.Vector3fImmutable; import engine.net.DispatchMessage; import engine.net.client.msg.PerformActionMsg; @@ -1129,8 +1126,8 @@ public class MobileFSM { return; } - HashMap staticPowers = aiAgent.getMobBase().getStaticPowers(); - + //HashMap staticPowers = aiAgent.getMobBase().getStaticPowers(); + HashMap staticPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(aiAgent.getMobBaseID()); if (staticPowers != null && !staticPowers.isEmpty()) { int chance = ThreadLocalRandom.current().nextInt(100);