From c44fb37f74347e3b6d399c941716971503af4cf8 Mon Sep 17 00:00:00 2001 From: ForesterDev <11771800+ForesterDev@users.noreply.github.com> Date: Fri, 5 Jul 2019 16:07:35 +0400 Subject: Core/Unit: Implement more helper methods (#23555) --- src/server/game/Handlers/SpellHandler.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/server/game/Handlers/SpellHandler.cpp') diff --git a/src/server/game/Handlers/SpellHandler.cpp b/src/server/game/Handlers/SpellHandler.cpp index 39c40dbc47d..9baa16cba72 100644 --- a/src/server/game/Handlers/SpellHandler.cpp +++ b/src/server/game/Handlers/SpellHandler.cpp @@ -636,15 +636,14 @@ void WorldSession::HandleMirrorImageDataRequest(WorldPacket& recvData) data << uint8(creator->GetGender()); data << uint8(creator->GetClass()); - if (creator->GetTypeId() == TYPEID_PLAYER) - { - Player* player = creator->ToPlayer(); - data << uint8(player->GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_SKIN_ID)); - data << uint8(player->GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_FACE_ID)); - data << uint8(player->GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_STYLE_ID)); - data << uint8(player->GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_COLOR_ID)); - data << uint8(player->GetByteValue(PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_FACIAL_STYLE)); - data << uint32(player->GetGuildId()); // unk + if (Player* player = creator->ToPlayer()) + { + data << uint8(player->GetSkinId()); + data << uint8(player->GetFaceId()); + data << uint8(player->GetHairStyleId()); + data << uint8(player->GetHairColorId()); + data << uint8(player->GetFacialStyle()); + data << uint32(player->GetGuildId()); static EquipmentSlots const itemSlots[] = { -- cgit v1.2.3