Skip to content

Commit

Permalink
Fix typo in SetCastBarColorsForScript (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth3001 authored Mar 1, 2025
1 parent 1ed633b commit 811678b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plater_CastColorPanels.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 811678b

Please sign in to comment.