diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp index b0d51b814..1f9fa5a87 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp @@ -184,7 +184,10 @@ struct npc_sunblade_scout : public ScriptedAI protectors.remove_if([](Creature* trigger) {return !trigger->HasAura(SPELL_COSMETIC_STUN_IMMUNE_PERMANENT);}); protectors.sort(Acore::ObjectDistanceOrderPred(me)); if (protectors.empty()) + { ScheduleCombat(); + return; + } Creature* closestProtector = protectors.front(); me->GetMotionMaster()->MoveFollow(closestProtector, 0.0f, 0.0f); _protectorGUID = closestProtector->GetGUID(); diff --git a/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp b/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp index 9edac602a..55e4f8039 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp @@ -757,7 +757,10 @@ struct npc_amanishi_scout : public ScriptedAI triggers.remove_if([](Creature* trigger) {return !IsDrum(trigger);}); triggers.sort(Acore::ObjectDistanceOrderPred(me)); if (triggers.empty()) + { ScheduleCombat(); + return; + } Creature* closestDrum = triggers.front(); me->GetMotionMaster()->MoveFollow(closestDrum, 0.0f, 0.0f); _drumGUID = closestDrum->GetGUID();