Browse Source

mage guards once again have powers

master
FatBoy-DOTC 2 years ago
parent
commit
8e457abe6d
  1. 5
      src/engine/ai/MobileFSM.java
  2. 9
      src/engine/objects/Mob.java

5
src/engine/ai/MobileFSM.java

@ -16,10 +16,7 @@ import engine.Enum.GameObjectType; @@ -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;

9
src/engine/objects/Mob.java

@ -2223,6 +2223,15 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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<MobBase> 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);

Loading…
Cancel
Save