Scripts/Misc: replace GetThreatListSize with GetThreatListPlayerCount to achieve the desired behavior
(cherry picked from commit 48cd3c91423a03581203411ff6cea600d4518730)
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user