Scripts/Misc: replace GetThreatListSize with GetThreatListPlayerCount to achieve the desired behavior

(cherry picked from commit 48cd3c91423a03581203411ff6cea600d4518730)
This commit is contained in:
ccrs
2026-06-27 22:20:36 +02:00
committed by Shauren
parent a7de2cad8c
commit 2e44e7a42f
3 changed files with 3 additions and 3 deletions
@@ -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();
@@ -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)
@@ -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);