Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Nov 28, 2024
1 parent 09e0805 commit 779b5d0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ElvUI_Libraries/Core/oUF/elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,15 @@ local function CastStart(self, real, unit, castGUID, spellID, castTime)
if spellID and real == 'UNIT_SPELLCAST_SENT' then
name, _, texture, castDuration = oUF:GetSpellInfo(spellID)

if castDuration and castDuration ~= 0 then
castTime = castDuration -- prefer a real duration time, otherwise use the static duration
end
if name then
if castDuration and castDuration ~= 0 then
castTime = castDuration -- prefer a real duration time, otherwise use the static duration
end

castID = castGUID
startTime = GetTime() * 1000
endTime = startTime + castTime
castID = castGUID
startTime = GetTime() * 1000
endTime = startTime + castTime
end
else
name, text, texture, startTime, endTime, isTradeSkill, castID, notInterruptible, spellID = UnitCastingInfo(unit)

Expand Down

0 comments on commit 779b5d0

Please sign in to comment.