From 4f3bae635a42b0f551304e341c15a41c64772b4e Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 21 Nov 2024 00:22:58 +0100 Subject: [PATCH] totems: Don't mess with forbidden tooltips --- elements/totems.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/totems.lua b/elements/totems.lua index b85414147..2d81c0ec6 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