aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2025-10-14 20:04:06 +0200
committerccrs <ccrs@users.noreply.github.com>2025-10-14 20:04:06 +0200
commit48cd3c91423a03581203411ff6cea600d4518730 (patch)
tree9cd8999b27d01a6fe76995d54b1f7a8f41095973
parent100790c0e22c2cf597bccd33971c6d1b856b8087 (diff)
Scripts/Misc: replace GetThreatListSize with GetThreatListPlayerCount to achieve the desired behavior
-rw-r--r--src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp2
-rw-r--r--src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp2
-rw-r--r--src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp2
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 046d315a50f..513c36cbcf4 100644
--- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp
+++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_prince_taldaram.cpp
@@ -185,7 +185,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 59fce6827e3..937e1a837ae 100644
--- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp
+++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp
@@ -368,7 +368,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 937fbbc8fab..4dadfb2e7ad 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
@@ -138,7 +138,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);