Core/Items: Fixed durability problems for wrapped item (#19003)
This commit is contained in:
1 parent
fe42260189
commit
c7a2fbed3f
2 files changed
+4
-1
No files matched your search
@@ -291,6 +291,7 @@ void WorldSession::HandleOpenWrappedItemCallback(uint16 pos, ObjectGuid itemGuid
|
||||
item->SetGuidValue(ITEM_FIELD_GIFTCREATOR, ObjectGuid::Empty);
|
||||
item->SetEntry(entry);
|
||||
item->SetUInt32Value(ITEM_FIELD_FLAGS, flags);
|
||||
item->SetUInt32Value(ITEM_FIELD_MAXDURABILITY, item->GetTemplate()->MaxDurability);
|
||||
item->SetState(ITEM_CHANGED, GetPlayer());
|
||||
|
||||
GetPlayer()->SaveInventoryAndGoldToDB(trans);
|
||||
|
||||
Reference in new issue
Block a user