Core/Items: Fixed durability problems for wrapped item

Port From (https://github.com/TrinityCore/TrinityCore/commit/ca4720662defef6f664489b222a00ae664855968)
This commit is contained in:
hondacrx
2020-05-06 13:49:35 -04:00
parent 83f57da2b6
commit 2ed40d012a
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -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);