Skip to content

Commit

Permalink
alternativepower: 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 91d0de9 commit bc5cab2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elements/alternativepower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bc5cab2

Please sign in to comment.