guard work

This commit is contained in:
2023-04-30 16:54:39 -05:00
parent 9fefebd4a3
commit 0b932119b0
3 changed files with 12 additions and 8 deletions
+6 -5
View File
@@ -385,12 +385,13 @@ public class MobileFSM {
mob.updateLocation();
if (mob.BehaviourType != Enum.MobBehaviourType.Pet1) {
if (mob.getCombatTarget() == null) {
if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardMinion.ordinal())
return;
if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardMinion.ordinal()) {
if (mob.npcOwner.isAlive() == true) {
return;
}
}
Patrol(mob);
}
else {
}else {
chaseTarget(mob);
}
} else {