Core/Players: merged a fix for frozen emotes in specific circumstances

This commit is contained in:
Ovahlord committed 2018-03-25 20:40:03 +02:00
1 parent b958176025
commit b60589fa9f
3 files changed
+8 -6

No files matched your search

+4 -2
View File
@@ -700,8 +700,10 @@ void WorldSession::HandleEmoteOpcode(WorldPacket& recvData)
uint32 emote;
recvData >> emote;
sScriptMgr->OnPlayerEmote(GetPlayer(), emote);
GetPlayer()->HandleEmoteCommand(emote);
sScriptMgr->OnPlayerClearEmote(GetPlayer());
if (_player->GetUInt32Value(UNIT_NPC_EMOTESTATE))
_player->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
}
namespace Trinity