Skip to content

Commit

Permalink
go by unit instead of frame.unit
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Jan 27, 2025
1 parent 6e3f84e commit b511d4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ElvUI_Libraries/Core/oUF/elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,19 @@ if oUF.isClassic then
specialAuras[3045] = 0.6 -- Rapid Fire (1 - 0.4, 40%)
end

local function SpecialActive(frame, filter)
local function SpecialActive(unit, filter)
if not next(specialAuras) then return end

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

index = index + 1
name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(frame.unit, index, filter)
name, _, _, _, _, _, _, _, _, spellID = oUF:GetAuraData(unit, index, filter)
end
end
-- end block
Expand Down Expand Up @@ -272,7 +272,7 @@ local function CastStart(self, real, unit, castGUID, spellID, castTime)
castTime = castDuration -- prefer a real duration time, otherwise use the static duration
end

local speedMod = SpecialActive(self, 'HELPFUL')
local speedMod = SpecialActive(unit, 'HELPFUL')
if speedMod then
castTime = castTime * speedMod
end
Expand Down

0 comments on commit b511d4a

Please sign in to comment.