From 5e171e57674c6c14c5f89c8d9f205b126d1c8aea Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 9 Oct 2023 20:22:41 +0200 Subject: [PATCH] unitframes: correct typo in custom color fading --- api/unitframes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 68d485d6..a2b0ba57 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1906,8 +1906,8 @@ function pfUI.uf:RefreshUnit(unit, component) local cr, cg, cb, ca = pfUI.api.strsplit(",", customcolor) r = (cr*perc) + (r*(1-perc)) - g = (cr*perc) + (g*(1-perc)) - b = (cr*perc) + (b*(1-perc)) + g = (cg*perc) + (g*(1-perc)) + b = (cb*perc) + (b*(1-perc)) end unit.hp.bar:SetStatusBarColor(r, g, b, a)