revert "fix(Core/Formations): Implemented new creature formation flag: GROUP_AI_FLAG_ACQUIRE_NEW_TARGET_ON_EVADE." (#14494)

This commit is contained in:
Gultask
2023-01-04 10:44:42 -03:00
committed by GitHub
parent 1b8c9216ba
commit b4080ed0f1
4 changed files with 27 additions and 77 deletions

View File

@@ -14676,16 +14676,6 @@ Unit* Creature::SelectVictim()
return nullptr;
}
// Last chance: creature group
if (CreatureGroup* group = GetFormation())
{
if (Unit* groupTarget = group->GetNewTargetForMember(this))
{
SetInFront(groupTarget);
return groupTarget;
}
}
// enter in evade mode in other case
AI()->EnterEvadeMode();