Require reload-safe ClassicAPI tooltip events

This commit is contained in:
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.tooltipunit = _G.GameTooltip
and type(_G.GameTooltip.GetUnitGUID) == "function"
-- OnTooltipSetUnit shipped in ClassicAPI v1.8.2. Tooltip Details uses this
-- native builder event directly instead of Vanilla OnShow/mouseover polling.
API.tooltipsetunit = API.classicapi_version >= 10802
-- OnTooltipSetUnit shipped in ClassicAPI v1.8.2, but its per-tooltip
-- handler cells became reload-safe in v1.12.2. Require the fixed generation
-- instead of falling back to Vanilla OnShow/mouseover polling.
API.tooltipsetunit = API.classicapi_version >= 11202
and API.tooltipunit and API.unittoken
API.unitrange = type(_G.UnitInRange) == "function"