Skip to content

Commit b511d4a

Browse files
committed
go by unit instead of frame.unit
1 parent 6e3f84e commit b511d4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ElvUI_Libraries/Core/oUF/elements/castbar.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,19 @@ if oUF.isClassic then
133133
specialAuras[3045] = 0.6 -- Rapid Fire (1 - 0.4, 40%)
134134
end
135135

136-
local function SpecialActive(frame, filter)
136+
local function SpecialActive(unit, filter)
137137
if not next(specialAuras) then return end
138138

139139
local index = 1
140-
local name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(frame.unit, index, filter)
140+
local name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
141141
while name do
142142
local speedMod = specialAuras[spellID]
143143
if speedMod then
144144
return speedMod
145145
end
146146

147147
index = index + 1
148-
name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(frame.unit, index, filter)
148+
name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
149149
end
150150
end
151151
-- end block
@@ -272,7 +272,7 @@ local function CastStart(self, real, unit, castGUID, spellID, castTime)
272272
castTime = castDuration -- prefer a real duration time, otherwise use the static duration
273273
end
274274

275-
local speedMod = SpecialActive(self, 'HELPFUL')
275+
local speedMod = SpecialActive(unit, 'HELPFUL')
276276
if speedMod then
277277
castTime = castTime * speedMod
278278
end

0 commit comments

Comments
 (0)