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:
@@ -550,10 +550,12 @@ struct boss_thorim : public BossAI
|
|||||||
if (_hardMode)
|
if (_hardMode)
|
||||||
chestId += 1; // hard mode offset
|
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->ReplaceAllGameObjectFlags((GameObjectFlags)0);
|
||||||
go->SetLootRecipient(me->GetMap());
|
go->SetLootRecipient(me->GetMap());
|
||||||
|
go->SetRespawnTime(7 * DAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defeat credit
|
// Defeat credit
|
||||||
|
|||||||
Reference in New Issue
Block a user