Skip to content

Commit

Permalink
phaseindicator: 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 bc5cab2 commit 1ec939a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elements/phaseindicator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -59,6 +59,8 @@ local function onEnter(element)
end

local function onLeave()
if(GameTooltip:IsForbidden()) then return end

GameTooltip:Hide()
end

Expand Down

0 comments on commit 1ec939a

Please sign in to comment.