Core/PacketIO: Updated SMSG_UPDATE_OBJECT for 11.0.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/68db469ee1f992bcdc81de64d6af1007d303be05)
This commit is contained in:
Hondacrx
2024-11-11 21:11:21 -05:00
parent 5909e7ba98
commit 7d351406f5
23 changed files with 678 additions and 208 deletions
+3
View File
@@ -24,6 +24,8 @@ namespace Game.Entities
ObjectTypeMask |= TypeMask.Item;
ObjectTypeId = TypeId.Item;
m_entityFragments.Add(EntityFragment.Tag_Item, false);
m_itemData = new ItemData();
uState = ItemUpdateState.New;
@@ -1310,6 +1312,7 @@ namespace Game.Entities
valuesMask.Set((int)TypeId.Item);
WorldPacket buffer = new();
BuildEntityFragmentsForValuesUpdateForPlayerWithMask(buffer, flags);
buffer.WriteUInt32(valuesMask.GetBlock(0));
if (valuesMask[(int)TypeId.Object])