Core/Items: Add ItemContext param to Item::Create function
Port From (https://github.com/TrinityCore/TrinityCore/commit/0a2d9ad2f7673e2b7ee62b7cc6f1a19639d37864)
This commit is contained in:
@@ -610,7 +610,7 @@ namespace Game
|
||||
}
|
||||
|
||||
Item bodyItem = new Item(); // This is not bag and then can be used new Item.
|
||||
if (!bodyItem.Create(Global.ObjectMgr.GetGenerator(HighGuid.Item).Generate(), 8383, player))
|
||||
if (!bodyItem.Create(Global.ObjectMgr.GetGenerator(HighGuid.Item).Generate(), 8383, ItemContext.None, player))
|
||||
return;
|
||||
|
||||
// in mail template case we need create new item text
|
||||
|
||||
Reference in New Issue
Block a user