chore(Core/ScriptMgr):Add Hook OnBeforeFillQuestLootItem (#16509)

* chore(Core/ScriptMgr):Add Hook OnBeforeLootItem

* Change name. Credit Anchy
This commit is contained in:
Walter Pagani
2023-06-13 08:10:35 -03:00
committed by GitHub
parent a432316dec
commit c676a82837
3 changed files with 14 additions and 0 deletions

View File

@@ -582,6 +582,14 @@ void ScriptMgr::OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid
});
}
void ScriptMgr::OnBeforeFillQuestLootItem(Player* player, LootItem& item)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)
{
script->OnBeforeFillQuestLootItem(player, item);
});
}
void ScriptMgr::OnStoreNewItem(Player* player, Item* item, uint32 count)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)