Skip to content

Commit

Permalink
totems: Don't mess with forbidden tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Nov 20, 2024
1 parent 1ec939a commit 4f3bae6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elements/totems.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4f3bae6

Please sign in to comment.