mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 21:57:01 +01:00
Scripts/Icecrown Citadel: Fixed target selection for Vampiric Bite and Blood Mirror after threat rewrite
Closes #21537
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user