fix: fire CHAT_MSG_TEXT_EMOTE for incoming text emotes

handleTextEmote pushed emote messages directly to chatHistory
instead of using addLocalChatMessage, so Lua chat addons never
received CHAT_MSG_TEXT_EMOTE events for /wave, /dance, /bow, etc.
from other players. Use addLocalChatMessage which fires the event
and also notifies the C++ display callback.
This commit is contained in:
Kelsi 2026-03-22 17:28:33 -07:00
parent 25b35d5224
commit 2a2db5cfb5

View file

@ -13565,10 +13565,7 @@ void GameHandler::handleTextEmote(network::Packet& packet) {
chatMsg.senderName = senderName;
chatMsg.message = emoteText;
chatHistory.push_back(chatMsg);
if (chatHistory.size() > maxChatHistory) {
chatHistory.erase(chatHistory.begin());
}
addLocalChatMessage(chatMsg);
// Trigger emote animation on sender's entity via callback
uint32_t animId = rendering::Renderer::getEmoteAnimByDbcId(data.textEmoteId);