fix minor castbar issue

This commit is contained in:
Sumsebrum 2022-01-11 03:01:16 +01:00
parent 2571df3052
commit 6b94fdc32f

View File

@ -220,7 +220,7 @@ function Castbar.OnUpdate(castBar, elapsed)
castBar.spark:SetPoint("CENTER", castBar.bar, "LEFT", castBar.spark.position, 0)
castBar.spark:Show()
end
elseif ( GetTime() < castBar.holdTime ) then
elseif ( castBar.holdTime and GetTime() < castBar.holdTime ) then
castBar.timeText:Hide()
castBar.spark:Hide()
return