Scripts/Icecrown Citadel: Fixed target selection for Vampiric Bite and Blood Mirror after threat rewrite

Closes #21537
This commit is contained in:
Shauren
2018-07-28 16:31:45 +02:00
parent 15a13650a4
commit 6cf12bcb4c

View File

@@ -493,7 +493,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
std::list<Player*> tempTargets;
Unit* maintank = me->GetThreatManager().GetCurrentVictim();
for (ThreatReference const* ref : me->GetThreatManager().GetUnsortedThreatList())
for (ThreatReference const* ref : me->GetThreatManager().GetSortedThreatList())
if (Player* refTarget = ref->GetVictim()->ToPlayer())
if (refTarget != maintank && (includeOfftank || (refTarget->GetGUID() != _offtankGUID)))
tempTargets.push_back(refTarget->ToPlayer());
@@ -503,7 +503,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
if (targetList)
{
*targetList = tempTargets;
*targetList = std::move(tempTargets);
return nullptr;
}