feat: add per-unit aura cache and dispellable debuff indicators on party frames

Extend the aura tracking system to cache auras for any unit (not just
player and current target), so healers can see dispellable debuffs on
party members. Colored 8px dots appear below the power bar:
  Magic=blue, Curse=purple, Disease=brown, Poison=green
One dot per dispel type; non-dispellable auras are suppressed.
Cache is populated via existing SMSG_AURA_UPDATE/SMSG_AURA_UPDATE_ALL
handling and cleared on world exit.
This commit is contained in:
Kelsi 2026-03-12 11:44:30 -07:00
parent 9c276d1072
commit a4c23b7fa2
3 changed files with 62 additions and 0 deletions

View file

@ -6708,6 +6708,7 @@ void GameHandler::selectCharacter(uint64_t characterGuid) {
actionBar = {};
playerAuras.clear();
targetAuras.clear();
unitAurasCache_.clear();
unitCastStates_.clear();
petGuid_ = 0;
playerXp_ = 0;
@ -14595,6 +14596,10 @@ void GameHandler::handleAuraUpdate(network::Packet& packet, bool isAll) {
} else if (data.guid == targetGuid) {
auraList = &targetAuras;
}
// Also maintain a per-unit cache for any unit (party members, etc.)
if (data.guid != 0 && data.guid != playerGuid && data.guid != targetGuid) {
auraList = &unitAurasCache_[data.guid];
}
if (auraList) {
if (isAll) {