From f8a9262fc576caaf4da7f4bd3dbb247516d3969d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 9 Jun 2022 18:22:30 -0500 Subject: [PATCH] changed location of mob power lookup --- src/engine/ai/utilities/CombatUtilities.java | 2 +- src/engine/objects/Mob.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/ai/utilities/CombatUtilities.java b/src/engine/ai/utilities/CombatUtilities.java index 8191f250..2c092188 100644 --- a/src/engine/ai/utilities/CombatUtilities.java +++ b/src/engine/ai/utilities/CombatUtilities.java @@ -291,7 +291,7 @@ public class CombatUtilities { else //check for a cast here? - agent.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(agent.getMobBaseID()); + //agent.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(agent.getMobBaseID()); if(agent.mobPowers.size() > 0 && agent.mobPowers != null) { diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index d1aa7b31..c5856358 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -2203,7 +2203,7 @@ public class Mob extends AbstractIntelligenceAgent { } catch(Exception e){ Logger.error( e.getMessage()); } - + mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID()); if (this.equip == null) { Logger.error("Null equipset returned for uuid " + currentID); this.equip = new HashMap<>(0);