fix(Scripts/TempleOfAhnQiraj): fix GCC/Clang build error in Skeram aggro yell (#26802)

This commit is contained in:
Andrew
2026-07-25 16:02:34 -03:00
committed by GitHub
parent f4a1b89a58
commit f7eae55ebd

View File

@@ -16,6 +16,7 @@
*/
#include "CreatureScript.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
@@ -155,7 +156,7 @@ struct boss_skeram : public BossAI
if (!me->IsSummon())
{
// Resolve pets/guardians to their owner so gendered locales resolve $g against the puller
Player* puller = who->GetCharmerOrOwnerPlayerOrPlayerItself();
Unit* puller = who->GetCharmerOrOwnerPlayerOrPlayerItself();
Talk(SAY_AGGRO, puller ? puller : who);
}
}