mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Scripting): Also call the OnLootItem() hook on master looted… (#13683)
fix(Core/Scripting): Also call the OnLootItem() hook on master looted items
This commit is contained in:
@@ -2593,6 +2593,8 @@ Item* Player::StoreNewItem(ItemPosCountVec const& dest, uint32 item, bool update
|
|||||||
stmt->SetData(1, ss.str());
|
stmt->SetData(1, ss.str());
|
||||||
CharacterDatabase.Execute(stmt);
|
CharacterDatabase.Execute(stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sScriptMgr->OnLootItem(this, pItem, count, ObjectGuid::Empty);
|
||||||
}
|
}
|
||||||
return pItem;
|
return pItem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user