fix stopmacro and fix mouseover in other addons

This commit is contained in:
Jrc13245
2026-01-15 11:48:01 -05:00
parent 167fd8e079
commit c230b1decb
7 changed files with 255 additions and 17 deletions
+3 -1
View File
@@ -243,7 +243,7 @@ do
local CleveRoids = _G.CleveRoids or {}
_G.CleveRoids = CleveRoids
CleveRoids.__mo = CleveRoids.__mo or { sources = {}, current = nil }
CleveRoids.__mo = CleveRoids.__mo or { sources = {}, current = nil, selfTriggered = false }
-- Priority levels for mouseover sources (higher = takes precedence)
-- All unit frame addons get priority 3, native event gets 2, tooltip fallback gets 1
@@ -302,6 +302,8 @@ do
local function apply(unit)
if CleveRoids.hasSuperwow and _G.SetMouseoverUnit then
-- Set flag so UPDATE_MOUSEOVER_UNIT handler knows we triggered this
CleveRoids.__mo.selfTriggered = true
_G.SetMouseoverUnit(unit)
else
CleveRoids.mouseoverUnit = unit