Browse Source

null check in mobAI

combat-3
FatBoy-DOTC 5 months ago
parent
commit
007299eae5
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -109,7 +109,7 @@ public class MobAI { @@ -109,7 +109,7 @@ public class MobAI {
return;
}
if (mob.behaviourType.callsForHelp)
if (mob.behaviourType != null && mob.behaviourType.callsForHelp)
mobCallForHelp(mob);
if (!MovementUtilities.inRangeDropAggro(mob, target)) {

Loading…
Cancel
Save