fix(Scripts/SlavePens): Fixed the loot permissions for boss_ahune's chest in Slave Pens (#27117)

Co-authored-by: sogladev <[email protected]>
Co-authored-by: sudlud <[email protected]>
This commit is contained in:
隐如仙
2026-09-12 22:17:00 +02:00
committed by GitHub
co-authored by sogladev sudlud
parent 275ce1e609
commit f7759071a0
2 changed files with 17 additions and 1 deletions
@@ -103,6 +103,20 @@ public:
InstanceScript::OnCreatureCreate(creature);
}
void OnGameObjectCreate(GameObject* go) override
{
InstanceScript::OnGameObjectCreate(go);
switch (go->GetEntry())
{
case GO_ICE_CHEST:
case GO_ICE_CHEST_2:
go->SetLootRecipient(instance);
break;
default:
break;
}
}
void SetGuidData(uint32 data, ObjectGuid guid) override
{
switch (data)
@@ -74,7 +74,9 @@ enum SPCreaturesIds
enum SPGameObjectIds
{
GO_ICE_SPEAR = 188077,
GO_ICE_STONE = 187882
GO_ICE_STONE = 187882,
GO_ICE_CHEST = 188192,
GO_ICE_CHEST_2 = 187892
};
template <class AI, class T>