Skip to content

Commit caae048

Browse files
committed
we need to make sure the fastest one is used if possible, this requires fully scanning the auras
1 parent 2fc0d52 commit caae048

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ElvUI_Libraries/Core/oUF/elements/castbar.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,21 @@ end
137137
local function SpecialActive(unit, filter)
138138
if not next(specialAuras) then return end
139139

140-
local index = 1
140+
local index, speed = 1
141141
local name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
142142
while name do
143-
local speedMod = specialAuras[spellID]
144-
if speedMod then
145-
return speedMod
143+
144+
if speed == 0.6 then
145+
return speed -- fastest speed
146+
else
147+
speed = specialAuras[spellID]
146148
end
147149

148150
index = index + 1
149151
name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
150152
end
153+
154+
return speed
151155
end
152156
-- end block
153157

0 commit comments

Comments
 (0)