Originally Posted by Fizzlemizz
local perc = Percent(cur,max)
Would appear to be converting current health into a percentage of max so if you just change perc to cur as the return by:
Code:
if perc >= 76 then
return "|cff00d036%s%%|r", cur
elseif perc >= 26 then
return "|cfff19c08%s%%|r",cur
else
return "|cfff10808%s%%|r",cur
end
You also have duplicate
Code:
local s = Status(unit)
if s then
return s
end
Statements.
For the boss you woulld need to substitute the function it's using to convert the values and replace it with Percent as in your code above.
|
Could you possible give me my code back fixed the way that you'd do it? I'm not really that good at coding.