Require reload-safe ClassicAPI tooltip events

This commit is contained in:
Dusk-92
2026-09-03 18:03:13 +02:00
parent d929efba89
commit 9cef79c57e
+4 -3
View File
@@ -112,9 +112,10 @@ API.unitguid = type(_G.UnitGUID) == "function"
API.unittoken = type(_G.UnitTokenFromGUID) == "function" API.unittoken = type(_G.UnitTokenFromGUID) == "function"
API.tooltipunit = _G.GameTooltip API.tooltipunit = _G.GameTooltip
and type(_G.GameTooltip.GetUnitGUID) == "function" and type(_G.GameTooltip.GetUnitGUID) == "function"
-- OnTooltipSetUnit shipped in ClassicAPI v1.8.2. Tooltip Details uses this -- OnTooltipSetUnit shipped in ClassicAPI v1.8.2, but its per-tooltip
-- native builder event directly instead of Vanilla OnShow/mouseover polling. -- handler cells became reload-safe in v1.12.2. Require the fixed generation
API.tooltipsetunit = API.classicapi_version >= 10802 -- instead of falling back to Vanilla OnShow/mouseover polling.
API.tooltipsetunit = API.classicapi_version >= 11202
and API.tooltipunit and API.unittoken and API.tooltipunit and API.unittoken
API.unitrange = type(_G.UnitInRange) == "function" API.unitrange = type(_G.UnitInRange) == "function"