chore(Core/ScriptMgr):Add Hook OnBeforeFillQuestLootItem (#16509)
* chore(Core/ScriptMgr):Add Hook OnBeforeLootItem * Change name. Credit Anchy
This commit is contained in:
parent
a432316dec
commit
c676a82837
3 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue