Core/PacketIO: Rewrite updatefield handling

This commit is contained in:
Shauren
2019-06-03 20:40:34 +02:00
parent 31fda79556
commit 455959c606
368 changed files with 10362 additions and 12544 deletions

View File

@@ -570,8 +570,7 @@ void WorldSession::HandleEmoteOpcode(WorldPackets::Chat::EmoteClient& /* packet
sScriptMgr->OnPlayerClearEmote(GetPlayer());
if (_player->GetUInt32Value(UNIT_NPC_EMOTESTATE))
_player->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
_player->SetEmoteState(EMOTE_ONESHOT_NONE);
}
void WorldSession::HandleTextEmoteOpcode(WorldPackets::Chat::CTextEmote& packet)
@@ -603,7 +602,7 @@ void WorldSession::HandleTextEmoteOpcode(WorldPackets::Chat::CTextEmote& packet)
break;
case EMOTE_STATE_DANCE:
case EMOTE_STATE_READ:
_player->SetUInt32Value(UNIT_NPC_EMOTESTATE, emoteAnim);
_player->SetEmoteState(Emote(emoteAnim));
break;
default:
// Only allow text-emotes for "dead" entities (feign death included)