Core/Items: Fixed durability problems for wrapped item
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca4720662defef6f664489b222a00ae664855968)
This commit is contained in:
@@ -222,6 +222,7 @@ namespace Game
|
||||
item.SetGiftCreator(ObjectGuid.Empty);
|
||||
item.SetEntry(entry);
|
||||
item.SetItemFlags((ItemFieldFlags)flags);
|
||||
item.SetMaxDurability(item.GetTemplate().MaxDurability);
|
||||
item.SetState(ItemUpdateState.Changed, GetPlayer());
|
||||
|
||||
GetPlayer().SaveInventoryAndGoldToDB(trans);
|
||||
|
||||
Reference in New Issue
Block a user