Skip to content

Commit

Permalink
Add Thread count to tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed May 22, 2024
1 parent eeed5a5 commit 08441ea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Modules/Tooltips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,18 @@ local TooltipSetUnit = function(self, data)

line = line + 1
end

local timerunner = C_UnitAuras.GetPlayerAuraBySpellID(424143)
if timerunner then
local playerData = C_UnitAuras.GetAuraDataBySpellName(unit, "Timerunner's Advantage")
if playerData ~= nil then
local total = 0
for i = 1, 9 do
total = total + playerData.points[i]
end
self:AddLine('\n|cff00FF98Threads |cffFFFFFF' .. SUI.Font:comma_value(total))
end
end
end

for i = 2, self:NumLines() do
Expand Down

0 comments on commit 08441ea

Please sign in to comment.