fix(Scripts/TrialOfTheChampion): Fix Grand Champions agro before event end (#21775)

This commit is contained in:
p-tkachuk
2025-10-12 15:56:34 +02:00
committed by GitHub
parent c3c28e0d8b
commit e57dc1922f
@@ -246,6 +246,12 @@ public:
events.Reset(); events.Reset();
} }
void MoveInLineOfSight(Unit* who) override
{
if (pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) >= INSTANCE_PROGRESS_GRAND_CHAMPIONS_REACHED_DEST)
ScriptedAI::MoveInLineOfSight(who);
}
void JustEngagedWith(Unit* /*who*/) override void JustEngagedWith(Unit* /*who*/) override
{ {
events.Reset(); events.Reset();
@@ -410,6 +416,12 @@ public:
} }
} }
void MoveInLineOfSight(Unit* who) override
{
if (pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) >= INSTANCE_PROGRESS_GRAND_CHAMPIONS_REACHED_DEST)
npc_escortAI::MoveInLineOfSight(who);
}
void JustEngagedWith(Unit* /*who*/) override void JustEngagedWith(Unit* /*who*/) override
{ {
if (pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) == INSTANCE_PROGRESS_CHAMPIONS_UNMOUNTED ) if (pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) == INSTANCE_PROGRESS_CHAMPIONS_UNMOUNTED )