Skip to content

Commit

Permalink
Update oUF_AuraTrack.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkthnx committed Aug 18, 2024
1 parent 495ae78 commit cd4f1e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions KkthnxUI/Modules/UnitFrames/Plugins/oUF_AuraTrack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ local Tracker = {
[20707] = { 0.8, 0.4, 0.8 }, -- Soulstone
}

local UnitAura = UnitAura

if not UnitAura then
UnitAura = function(unitToken, index, filter)
local auraData = C_UnitAuras.GetAuraDataByIndex(unitToken, index, filter)

if not auraData then
return nil
end

return AuraUtil.UnpackAuraData(auraData)
end
end

-- Declare a local function to handle the OnUpdate event
local function OnUpdate(self)
-- Get the current time
Expand Down

0 comments on commit cd4f1e4

Please sign in to comment.