From 2e44e7a42fceb44f085f4405c3cc8b8a4fff699b Mon Sep 17 00:00:00 2001 From: ccrs Date: Tue, 14 Oct 2025 20:04:06 +0200 Subject: [PATCH] Scripts/Misc: replace GetThreatListSize with GetThreatListPlayerCount to achieve the desired behavior (cherry picked from commit 48cd3c91423a03581203411ff6cea600d4518730) --- .../Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp | 2 +- src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp | 2 +- .../Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp index 637dc68e49..d66e7eb365 100644 --- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp +++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp @@ -186,7 +186,7 @@ struct boss_prince_taldaram : public BossAI break; case EVENT_VANISH: { - if (me->GetThreatManager().GetThreatListSize() > 1) + if (me->GetThreatManager().GetThreatListPlayerCount() > 1) { if (Unit* embraceTarget = SelectTarget(SelectTargetMethod::Random, 0, 100.0f, true)) _embraceTargetGUID = embraceTarget->GetGUID(); diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp index 0179cfc747..1bfb552a54 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp @@ -365,7 +365,7 @@ class StoneGripTargetSelector bool operator()(WorldObject* target) { - if (target == _victim && _me->GetThreatManager().GetThreatListSize() > 1) + if (target == _victim && _me->GetThreatManager().GetThreatListPlayerCount() > 1) return true; if (target->GetTypeId() != TYPEID_PLAYER) diff --git a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp index eb6be5cc8a..2ff8c5e89b 100644 --- a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp +++ b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp @@ -143,7 +143,7 @@ struct boss_blackheart_the_inciter : public BossAI { case EVENT_INCITE_CHAOS: { - if (me->GetThreatManager().GetThreatListSize() > 1) + if (me->GetThreatManager().GetThreatListPlayerCount() > 1) { ResetThreatList(); DoCastSelf(SPELL_INCITE_CHAOS);