fix(Scripts/TempleOfAhnQiraj): pass aggro target to Skeram's aggro yell (#26789)
This commit is contained in:
@@ -142,7 +142,7 @@ struct boss_skeram : public BossAI
|
|||||||
me->RemoveCorpse();
|
me->RemoveCorpse();
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustEngagedWith(Unit* /*who*/) override
|
void JustEngagedWith(Unit* who) override
|
||||||
{
|
{
|
||||||
_JustEngagedWith();
|
_JustEngagedWith();
|
||||||
events.Reset();
|
events.Reset();
|
||||||
@@ -154,7 +154,9 @@ struct boss_skeram : public BossAI
|
|||||||
|
|
||||||
if (!me->IsSummon())
|
if (!me->IsSummon())
|
||||||
{
|
{
|
||||||
Talk(SAY_AGGRO);
|
// Resolve pets/guardians to their owner so gendered locales resolve $g against the puller
|
||||||
|
Player* puller = who->GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||||
|
Talk(SAY_AGGRO, puller ? puller : who);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user