mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
unitframes: remove custom fade color adjustments
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user