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 30, 2024
1 parent 35e6aa7 commit a2f006e
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 @@ -58,13 +58,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 a2f006e

Please sign in to comment.