diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 6f45e96a..841c722b 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; diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 660ced73..37fef773 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -2223,6 +2223,15 @@ public class Mob extends AbstractIntelligenceAgent { Logger.error( e.getMessage()); } mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID()); + if(this.isPlayerGuard() == true){ + //load guards powers + ArrayList mobbases = DbManager.MobBaseQueries.GET_ALL_MOBBASES(); + for(MobBase mb : mobbases){ + if(this.getName() == mb.getFirstName()){ + mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID()); + } + } + } if (this.equip == null) { Logger.error("Null equipset returned for uuid " + currentID); this.equip = new HashMap<>(0);