From 4f60811f6b3ec60a824920b7d31e9fefb4944e62 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 12 Mar 2023 18:02:24 -0500 Subject: [PATCH] mob power list troubleshooting --- src/engine/objects/Mob.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 3416489a..85e1e329 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -2220,15 +2220,8 @@ public class Mob extends AbstractIntelligenceAgent { Logger.error( e.getMessage()); } //mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID()); - mobPowers = (HashMap) PowersManager.AllMobPowers.get(this.getMobBaseID()).entrySet(); - if(this.isPlayerGuard() == true){ - //load guards powers - ArrayList mobbases = DbManager.MobBaseQueries.GET_ALL_MOBBASES(); - for(MobBase mb : mobbases){ - if(this.getNameOverride().contains(mb.getFirstName())){ - this.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID()); - } - } + if(PowersManager.AllMobPowers.containsKey(this.getMobBaseID()) == true){ + mobPowers = (HashMap) PowersManager.AllMobPowers.get(this.getMobBaseID()).entrySet(); } if (this.equip == null) { Logger.error("Null equipset returned for uuid " + currentID);