Skip to content

Commit

Permalink
make sure .isTempEnchant doesn't stick so tooltips function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Nov 20, 2024
1 parent 8973cee commit 8dbf23d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Widgets/Auras/Auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,14 @@ local function UpdateAuraIcons(icons)
auraData.refreshing
)

-- Tooltip
---@diagnostic disable-next-line: undefined-field
if auraData.isTempEnchant then
icons[icons._auraCount].auraInstanceID = math.abs(auraInstanceID) -- Tooltip
icons[icons._auraCount].isTempEnchant = true -- Tooltip
icons[icons._auraCount].auraInstanceID = math.abs(auraInstanceID)
icons[icons._auraCount].isTempEnchant = true
else
icons[icons._auraCount].auraInstanceID = auraInstanceID -- Tooltip
icons[icons._auraCount].auraInstanceID = auraInstanceID
icons[icons._auraCount].isTempEnchant = false
end

icons[icons._auraCount]:PostUpdate(auraData)
Expand Down

0 comments on commit 8dbf23d

Please sign in to comment.