можно в файле AddOns\ag_UnitFrames\modules\healthbar\ healthbar.lua заменить это
PHP код:
local function colorGradient(perc)
local healthColor = aUF.db.profile.HealthColor
if perc and perc >= 1 then
return healthColor.r, healthColor.g, healthColor.b
elseif (perc and perc <= 0) or not perc then
local r, g, b = red[1], red[2], red[3]
return r, g, b
end
local _, relperc = math.modf(perc*2)
local r1, g1, b1, r2, g2, b2
if perc >= 0.5 then
r2, g2, b2 = healthColor.r, healthColor.g, healthColor.b
r1, g1, b1 = yellow[1], yellow[2], yellow[3]
else
r2, g2, b2 = yellow[1], yellow[2], yellow[3]
r1, g1, b1 = red[1], red[2], red[3]
end
return r1 + (r2-r1)*relperc, g1 + (g2-g1)*relperc, b1 + (b2-b1)*relperc
end
на это
PHP код:
local function colorGradient(p)
if not p or p <= 0 then return .9, .2, .3
else
local c = aUF.db.profile.HealthColor
return c.r, c.g, c.b
end
end