Browse Source

guard patrol point logic

master
FatBoy-DOTC 2 years ago
parent
commit
7e5cef2842
  1. 2
      src/engine/ai/MobileFSM.java

2
src/engine/ai/MobileFSM.java

@ -619,6 +619,7 @@ public class MobileFSM { @@ -619,6 +619,7 @@ public class MobileFSM {
if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardCaptain.ordinal()) {
for (Entry<Mob, Integer> minion : mob.siegeMinionMap.entrySet()) {
//make sure mob is out of combat stance
if (minion.getKey().despawned == false) {
if (minion.getKey().isCombat() && minion.getKey().getCombatTarget() == null) {
minion.getKey().setCombat(false);
UpdateStateMsg rwss = new UpdateStateMsg();
@ -634,4 +635,5 @@ public class MobileFSM { @@ -634,4 +635,5 @@ public class MobileFSM {
}
}
}
}
}
Loading…
Cancel
Save