Browse Source

generic resists added for mobs to stop crashing AI

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
9e3c13dea3
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -1493,6 +1493,8 @@ public class Mob extends AbstractIntelligenceAgent {
} }
if(this.StrongholdCommander || this.StrongholdGuardian || this.StrongholdEpic){ if(this.StrongholdCommander || this.StrongholdGuardian || this.StrongholdEpic){
this.setResists(new Resists("Elite")); this.setResists(new Resists("Elite"));
}else{
this.setResists(new Resists("Generic"));
} }
this.resists.calculateResists(this, false); this.resists.calculateResists(this, false);
} }

Loading…
Cancel
Save