diff --git a/ClassicCastbars/ClassicCastbars.lua b/ClassicCastbars/ClassicCastbars.lua index 6b60621..5907c9d 100644 --- a/ClassicCastbars/ClassicCastbars.lua +++ b/ClassicCastbars/ClassicCastbars.lua @@ -541,7 +541,7 @@ ClassicCastbars:SetScript("OnUpdate", function(self, elapsed) castbar.Timer:SetFormattedText("%.1f", castbar.isChanneled and castbar.value or not castbar.isChanneled and castbar.maxValue - castbar.value) local sparkPosition = (castbar.value / castbar.maxValue) * (castbar.currWidth or castbar:GetWidth()) - castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, 0) + castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, castbar.BorderShield:IsShown() and 3 or 0) -- Check if cast is complete if (castbar.isChanneled and castbar.value <= 0) or (not castbar.isChanneled and castbar.value >= castbar.maxValue) then diff --git a/ClassicCastbars_Options/TestMode.lua b/ClassicCastbars_Options/TestMode.lua index b12651a..7b48c74 100644 --- a/ClassicCastbars_Options/TestMode.lua +++ b/ClassicCastbars_Options/TestMode.lua @@ -165,7 +165,7 @@ function TestMode:SetCastbarMovable(unitID, parent) castbar.Timer:SetFormattedText("%.1f", castbar.isChanneled and castbar.value or not castbar.isChanneled and castbar.maxValue - castbar.value) local sparkPosition = (castbar.value / castbar.maxValue) * (castbar.currWidth or castbar:GetWidth()) - castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, 0) + castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, castbar.BorderShield:IsShown() and 3 or 0) if IsModifierKeyDown() or (IsMetaKeyDown and IsMetaKeyDown()) then castbar.isUninterruptible = true