Browse Source

guard minion logic work

master
FatBoy-DOTC 2 years ago
parent
commit
56a6b9d204
  1. 11
      src/engine/ai/MobileFSM.java

11
src/engine/ai/MobileFSM.java

@ -384,12 +384,15 @@ public class MobileFSM { @@ -384,12 +384,15 @@ public class MobileFSM {
return;
mob.updateLocation();
if (mob.BehaviourType != Enum.MobBehaviourType.Pet1) {
if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardMinion.ordinal() && ((Mob)mob.npcOwner).despawned == true)
return;
if (mob.getCombatTarget() == null)
if (mob.getCombatTarget() == null) {
if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardMinion.ordinal() && (mob.npcOwner).isAlive()) {
return;
}
Patrol(mob);
else
}
else {
chaseTarget(mob);
}
} else {
//pet logic
if (!mob.playerAgroMap.containsKey(mob.getOwner().getObjectUUID())) {

Loading…
Cancel
Save