Reset Tooltip Details state on native clear

This commit is contained in:
Dusk-92
2026-09-03 17:40:47 +02:00
parent 222e5fd1ed
commit d929efba89
+3 -1
View File
@@ -240,7 +240,9 @@ module.enable = function(self)
-- ClassicAPI fires this after the native unit-tooltip builder completes.
-- This replaces OnShow + UPDATE_MOUSEOVER_UNIT identity refreshes.
GameTooltip:HookScript("OnTooltipSetUnit", UpdateTooltip)
GameTooltip:HookScript("OnHide", ResetTooltipState)
-- OnTooltipCleared fires for every new Set* path, not only when the frame
-- hides, so unit-only state cannot leak into a following item/spell tooltip.
GameTooltip:HookScript("OnTooltipCleared", ResetTooltipState)
-- StatusBar already has a native value-change script, so health text can be
-- event-driven too. No permanent OnUpdate is needed.