mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 01:00:13 +00:00
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:
parent
a8c241f6bd
commit
8fd735f4a3
1 changed files with 4 additions and 0 deletions
|
|
@ -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"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue