fix(Scripts/Ulduar): keep Thorim loot chest alive through his outro (#26567)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-07-14 21:24:38 -03:00
committed by GitHub
parent 81e60ffd41
commit 5d098c9781

View File

@@ -550,10 +550,12 @@ struct boss_thorim : public BossAI
if (_hardMode)
chestId += 1; // hard mode offset
if ((go = me->SummonGameObject(chestId, 2134.73f, -286.32f, 419.51f, 4.65f, 0, 0, 0, 0, 0)))
// Summoned by the map, not Thorim, so the chest survives his despawn during the outro.
if ((go = me->GetMap()->SummonGameObject(chestId, 2134.73f, -286.32f, 419.51f, 4.65f, 0, 0, 0, 0, 0)))
{
go->ReplaceAllGameObjectFlags((GameObjectFlags)0);
go->SetLootRecipient(me->GetMap());
go->SetRespawnTime(7 * DAY);
}
// Defeat credit