From 84c7dcf1c6f6a97ef6cd81f8d4eadc7be252f0b3 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 13 Dec 2021 10:59:46 +0100 Subject: [PATCH] unitframes: remove custom fade color adjustments --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 2cec588a..ded0206a 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1842,7 +1842,7 @@ function pfUI.uf:RefreshUnit(unit, component) if customfade == "1" then -- fade custom color into default color - local perc = UnitHealth(unitstr) / UnitHealthMax(unitstr) * 2 - 1 + local perc = UnitHealth(unitstr) / UnitHealthMax(unitstr) local cr, cg, cb, ca = pfUI.api.strsplit(",", customcolor) r = (cr*perc) + (r*(1-perc))