mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/PacketIO: Restrict CMSG_EMOTE to only allow emotes that are hardcoded in client
This commit is contained in:
@@ -710,6 +710,11 @@ void WorldSession::HandleEmoteOpcode(WorldPacket& recvData)
|
||||
|
||||
uint32 emote;
|
||||
recvData >> emote;
|
||||
|
||||
// restrict to the only emotes hardcoded in client
|
||||
if (emote != EMOTE_ONESHOT_NONE && emote != EMOTE_ONESHOT_WAVE)
|
||||
return;
|
||||
|
||||
sScriptMgr->OnPlayerClearEmote(GetPlayer());
|
||||
|
||||
if (_player->GetUInt32Value(UNIT_NPC_EMOTESTATE))
|
||||
|
||||
Reference in New Issue
Block a user