Browse Source

mob resist issue

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
5822cb1ab4
  1. 5
      src/engine/objects/Mob.java

5
src/engine/objects/Mob.java

@ -216,7 +216,9 @@ public class Mob extends AbstractIntelligenceAgent { @@ -216,7 +216,9 @@ public class Mob extends AbstractIntelligenceAgent {
break;
}
}
switch(mob.mobBase.raceType){
int mobbaseID = mob.getMobBaseID();
if(mobbaseID != 0) {
switch (MobBase.mobbase_race_types.get(mobbaseID)) {
case "Aelfborn":
case "NPC":
case "Rat":
@ -295,6 +297,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -295,6 +297,7 @@ public class Mob extends AbstractIntelligenceAgent {
resists.addResists(Resists.getResists(11));
break;
}
}
mob.mobResists = resists;
}

Loading…
Cancel
Save