forked from MagicBane/Server
guard patrol point logic
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user