mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user