diff --git a/elements/alternativepower.lua b/elements/alternativepower.lua index c0ca6bc1..5700f435 100644 --- a/elements/alternativepower.lua +++ b/elements/alternativepower.lua @@ -69,13 +69,15 @@ local function updateTooltip(self) end local function onEnter(self) - if(not self:IsVisible()) then return end + if(GameTooltip:IsForbidden() or not self:IsVisible()) then return end GameTooltip_SetDefaultAnchor(GameTooltip, self) self:UpdateTooltip() end local function onLeave() + if(GameTooltip:IsForbidden()) then return end + GameTooltip:Hide() end diff --git a/elements/phaseindicator.lua b/elements/phaseindicator.lua index 4242a7f1..5ada3c3d 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 diff --git a/elements/totems.lua b/elements/totems.lua index b8541414..2d81c0ec 100644 --- a/elements/totems.lua +++ b/elements/totems.lua @@ -53,13 +53,15 @@ local function UpdateTooltip(self) end local function OnEnter(self) - if(not self:IsVisible()) then return end + if(GameTooltip:IsForbidden() or not self:IsVisible()) then return end GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMRIGHT') self:UpdateTooltip() end local function OnLeave() + if(GameTooltip:IsForbidden()) then return end + GameTooltip:Hide() end