Skip to content

Commit 7ab20e3

Browse files
committed
forgot these spark setpoint calls for commit 5a62ba8
1 parent 5a62ba8 commit 7ab20e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ClassicCastbars/ClassicCastbars.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ ClassicCastbars:SetScript("OnUpdate", function(self, elapsed)
541541
castbar.Timer:SetFormattedText("%.1f", castbar.isChanneled and castbar.value or not castbar.isChanneled and castbar.maxValue - castbar.value)
542542

543543
local sparkPosition = (castbar.value / castbar.maxValue) * (castbar.currWidth or castbar:GetWidth())
544-
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, 0)
544+
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, castbar.BorderShield:IsShown() and 3 or 0)
545545

546546
-- Check if cast is complete
547547
if (castbar.isChanneled and castbar.value <= 0) or (not castbar.isChanneled and castbar.value >= castbar.maxValue) then

ClassicCastbars_Options/TestMode.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function TestMode:SetCastbarMovable(unitID, parent)
165165
castbar.Timer:SetFormattedText("%.1f", castbar.isChanneled and castbar.value or not castbar.isChanneled and castbar.maxValue - castbar.value)
166166

167167
local sparkPosition = (castbar.value / castbar.maxValue) * (castbar.currWidth or castbar:GetWidth())
168-
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, 0)
168+
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, castbar.BorderShield:IsShown() and 3 or 0)
169169

170170
if IsModifierKeyDown() or (IsMetaKeyDown and IsMetaKeyDown()) then
171171
castbar.isUninterruptible = true

0 commit comments

Comments
 (0)