mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
chore(Core/ScriptMgr):Add Hook OnBeforeFillQuestLootItem (#16509)
* chore(Core/ScriptMgr):Add Hook OnBeforeLootItem * Change name. Credit Anchy
This commit is contained in:
@@ -679,6 +679,8 @@ QuestItemList* Loot::FillQuestLoot(Player* player)
|
||||
{
|
||||
LootItem& item = quest_items[i];
|
||||
|
||||
sScriptMgr->OnBeforeFillQuestLootItem(player, item);
|
||||
|
||||
// Quest item is not free for all and is already assigned to another player
|
||||
// or player doesn't need it
|
||||
if (item.is_blocked || !item.AllowedForPlayer(player, sourceWorldObjectGUID))
|
||||
|
||||
Reference in New Issue
Block a user