mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Core/Formations): fixed possible finite loop related to GROUP_AI_FLAG_EVADE_TOGETHER (#9279)
This commit is contained in:
@@ -314,15 +314,14 @@ bool CreatureAI::_EnterEvadeMode()
|
||||
me->SetLastDamagedTime(0);
|
||||
me->SetCannotReachTarget(false);
|
||||
|
||||
if (CreatureGroup* formation = me->GetFormation())
|
||||
{
|
||||
formation->MemberEvaded(me);
|
||||
}
|
||||
|
||||
if (me->IsInEvadeMode())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (CreatureGroup* formation = me->GetFormation())
|
||||
{
|
||||
formation->MemberEvaded(me);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user