mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
*Some improvements in Mirrors Image visual - by thenecromancer.
--HG-- branch : trunk
This commit is contained in:
@@ -580,7 +580,7 @@ void WorldSession::HandleMirrrorImageDataRequest( WorldPacket & recv_data )
|
||||
data << (uint8)pCreator->GetByteValue(PLAYER_BYTES, 3); // haircolor
|
||||
data << (uint8)pCreator->GetByteValue(PLAYER_BYTES_2, 0); // facialhair
|
||||
|
||||
data << (uint32)0; // unk
|
||||
data << (uint32)pCreator->GetGuildId(); // unk
|
||||
static const EquipmentSlots ItemSlots[] =
|
||||
{
|
||||
EQUIPMENT_SLOT_HEAD,
|
||||
@@ -598,10 +598,16 @@ void WorldSession::HandleMirrrorImageDataRequest( WorldPacket & recv_data )
|
||||
};
|
||||
// Display items in visible slots
|
||||
for (EquipmentSlots const* itr = &ItemSlots[0];*itr!=EQUIPMENT_SLOT_END;++itr)
|
||||
if (Item const *item = pCreator->GetItemByPos(INVENTORY_SLOT_BAG_0, *itr))
|
||||
{
|
||||
if (*itr == EQUIPMENT_SLOT_HEAD && pCreator->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM))
|
||||
data << (uint32)0;
|
||||
else if (*itr == EQUIPMENT_SLOT_BACK && pCreator->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK))
|
||||
data << (uint32)0;
|
||||
else if (Item const *item = pCreator->GetItemByPos(INVENTORY_SLOT_BAG_0, *itr))
|
||||
data << (uint32)item->GetProto()->DisplayInfoID;
|
||||
else
|
||||
data << (uint32)0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user