unitframes: remove custom fade color adjustments

This commit is contained in:
shagu
2021-12-13 10:59:46 +01:00
parent b14a314993
commit 84c7dcf1c6
+1 -1
View File
@@ -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))