Skip to content

Commit

Permalink
we need to make sure the fastest one is used if possible, this requir…
Browse files Browse the repository at this point in the history
…es fully scanning the auras
  • Loading branch information
kodewdle committed Jan 27, 2025
1 parent 2fc0d52 commit caae048
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ElvUI_Libraries/Core/oUF/elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,21 @@ end
local function SpecialActive(unit, filter)
if not next(specialAuras) then return end

local index = 1
local index, speed = 1
local name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
while name do
local speedMod = specialAuras[spellID]
if speedMod then
return speedMod

if speed == 0.6 then
return speed -- fastest speed
else
speed = specialAuras[spellID]
end

index = index + 1
name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
end

return speed
end
-- end block

Expand Down

0 comments on commit caae048

Please sign in to comment.