fix: fire UNIT_AURA event for Classic/Turtle field-based aura updates

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.
This commit is contained in:
Kelsi 2026-03-22 16:47:49 -07:00
parent a8c241f6bd
commit 8fd735f4a3

View file

@ -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"});
}
}
}