mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 00:20:16 +00:00
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:
parent
25b35d5224
commit
2a2db5cfb5
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue