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
@@ -22,6 +22,8 @@ namespace Game.Entities
ObjectTypeMask |= TypeMask.AzeriteEmpoweredItem;
ObjectTypeId = TypeId.AzeriteEmpoweredItem;
m_entityFragments.Add(EntityFragment.Tag_AzeriteEmpoweredItem, false);
m_azeriteEmpoweredItemData = new AzeriteEmpoweredItemData();
}
@@ -181,6 +183,7 @@ namespace Game.Entities
valuesMask.Set((int)TypeId.AzeriteEmpoweredItem);
WorldPacket buffer = new();
BuildEntityFragmentsForValuesUpdateForPlayerWithMask(buffer, flags);
buffer.WriteUInt32(valuesMask.GetBlock(0));
if (valuesMask[(int)TypeId.Object])