refactor(Core): SendDirectMessage (#23230)
This commit is contained in:
@@ -1066,7 +1066,7 @@ void Item::SendUpdateSockets()
|
||||
for (uint32 i = SOCK_ENCHANTMENT_SLOT; i <= BONUS_ENCHANTMENT_SLOT; ++i)
|
||||
data << uint32(GetEnchantmentId(EnchantmentSlot(i)));
|
||||
|
||||
GetOwner()->GetSession()->SendPacket(&data);
|
||||
GetOwner()->SendDirectMessage(&data);
|
||||
}
|
||||
|
||||
// Though the client has the information in the item's data field,
|
||||
@@ -1081,7 +1081,7 @@ void Item::SendTimeUpdate(Player* owner)
|
||||
WorldPacket data(SMSG_ITEM_TIME_UPDATE, (8 + 4));
|
||||
data << GetGUID();
|
||||
data << uint32(duration);
|
||||
owner->GetSession()->SendPacket(&data);
|
||||
owner->SendDirectMessage(&data);
|
||||
}
|
||||
|
||||
Item* Item::CreateItem(uint32 item, uint32 count, Player const* player, bool clone, uint32 randomPropertyId)
|
||||
|
||||
Reference in New Issue
Block a user