fix(Core/Misc): Consider /dance as an emote state. (#14275)

This commit is contained in:
UltraNix
2022-12-22 07:38:09 +01:00
committed by GitHub
parent 20c9e80d4a
commit 962cefdcd8
3 changed files with 15 additions and 0 deletions

View File

@@ -755,6 +755,9 @@ void WorldSession::HandleTextEmoteOpcode(WorldPacket& recvData)
case EMOTE_STATE_KNEEL:
case EMOTE_ONESHOT_NONE:
break;
case EMOTE_STATE_DANCE:
GetPlayer()->SetUInt32Value(UNIT_NPC_EMOTESTATE, emote_anim);
break;
default:
// Only allow text-emotes for "dead" entities (feign death included)
if (GetPlayer()->HasUnitState(UNIT_STATE_DIED))