feat: add mouseover unit ID support and fire UPDATE_MOUSEOVER_UNIT/PLAYER_FOCUS_CHANGED events

Add "mouseover" as a valid unit ID in resolveUnitGuid so Lua API functions
like UnitName("mouseover"), UnitHealth("mouseover") etc. work for addons.
Fire UPDATE_MOUSEOVER_UNIT event when the mouseover target changes, and
PLAYER_FOCUS_CHANGED event when focus is set or cleared.
This commit is contained in:
Kelsi 2026-03-21 01:26:37 -07:00
parent 22798d1c76
commit 32a51aa93d
3 changed files with 12 additions and 2 deletions

View file

@ -403,7 +403,7 @@ public:
bool hasFocus() const { return focusGuid != 0; }
// Mouseover targeting — set each frame by the nameplate renderer
void setMouseoverGuid(uint64_t guid) { mouseoverGuid_ = guid; }
void setMouseoverGuid(uint64_t guid);
uint64_t getMouseoverGuid() const { return mouseoverGuid_; }
// Advanced targeting