Browse Source

guard static power load correct placement

master
FatBoy-DOTC 2 years ago
parent
commit
2462cc13dd
  1. 4
      src/engine/objects/Mob.java

4
src/engine/objects/Mob.java

@ -2227,8 +2227,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -2227,8 +2227,8 @@ public class Mob extends AbstractIntelligenceAgent {
//load guards powers
ArrayList<MobBase> mobbases = DbManager.MobBaseQueries.GET_ALL_MOBBASES();
for(MobBase mb : mobbases){
if(this.getName().contains(mb.getFirstName())){
mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID());
if(this.getNameOverride().contains(mb.getFirstName())){
this.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID());
}
}
}

Loading…
Cancel
Save