From 8fd735f4a374ac865c1194aa9fbba0e134cb42d4 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 22 Mar 2026 16:47:49 -0700 Subject: [PATCH] fix: fire UNIT_AURA event for Classic/Turtle field-based aura updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Classic and Turtle WoW don't use SMSG_AURA_UPDATE packets — they pack aura data into UNIT_FIELD_AURAS update fields. The code correctly rebuilds playerAuras from these fields in both CREATE_OBJECT and VALUES update paths, but never fired the UNIT_AURA("player") addon event. Buff frame addons (Buffalo, ElkBuffBars, etc.) register for UNIT_AURA to refresh their display. Without this event, buff frames on Classic and Turtle never update when buffs are gained or lost. --- src/game/game_handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 36ad69ce..cf3b2d51 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -12110,6 +12110,8 @@ void GameHandler::applyUpdateObjectBlock(const UpdateBlock& block, bool& newItem } } LOG_DEBUG("[Classic] Rebuilt playerAuras from UNIT_FIELD_AURAS (CREATE_OBJECT)"); + if (addonEventCallback_) + addonEventCallback_("UNIT_AURA", {"player"}); } } } @@ -12677,6 +12679,8 @@ void GameHandler::applyUpdateObjectBlock(const UpdateBlock& block, bool& newItem } } LOG_DEBUG("[Classic] Rebuilt playerAuras from UNIT_FIELD_AURAS (VALUES)"); + if (addonEventCallback_) + addonEventCallback_("UNIT_AURA", {"player"}); } } }