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

Loading…
Cancel
Save