Browse Source

null check in mobAI

combat-3
FatBoy-DOTC 6 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 {
return; return;
} }
if (mob.behaviourType.callsForHelp) if (mob.behaviourType != null && mob.behaviourType.callsForHelp)
mobCallForHelp(mob); mobCallForHelp(mob);
if (!MovementUtilities.inRangeDropAggro(mob, target)) { if (!MovementUtilities.inRangeDropAggro(mob, target)) {

Loading…
Cancel
Save