From 1ec939a98d5166715cc97cb94679aac39fd1be8b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 21 Nov 2024 00:22:52 +0100 Subject: [PATCH] phaseindicator: Don't mess with forbidden tooltips --- elements/phaseindicator.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/phaseindicator.lua b/elements/phaseindicator.lua index 4242a7f1b..5ada3c3db 100644 --- a/elements/phaseindicator.lua +++ b/elements/phaseindicator.lua @@ -50,7 +50,7 @@ local function UpdateTooltip(element) end local function onEnter(element) - if(not element:IsVisible()) then return end + if(GameTooltip:IsForbidden() or not element:IsVisible()) then return end if(element.reason) then GameTooltip:SetOwner(element, 'ANCHOR_BOTTOMRIGHT') @@ -59,6 +59,8 @@ local function onEnter(element) end local function onLeave() + if(GameTooltip:IsForbidden()) then return end + GameTooltip:Hide() end