diff --git a/Plater_CastColorPanels.lua b/Plater_CastColorPanels.lua index 87267575..65996f4c 100644 --- a/Plater_CastColorPanels.lua +++ b/Plater_CastColorPanels.lua @@ -225,7 +225,7 @@ function Plater.SetCastBarColorsForScript(castBar, canUseScriptColor, scriptColo end --if is interruptible and don't have a custom user color, set the script color - if (canUseScriptColor and scriptColor0) then + if (canUseScriptColor and scriptColor) then if (type(scriptColor) == "table" or (type(scriptColor) == "string") and DF:IsHtmlColor(scriptColor)) then castBar:SetColor(Plater:ParseColors(scriptColor)) end