View Single Post
03-10-16, 12:16 PM   #21
slayos
A Deviate Faerie Dragon
 
slayos's Avatar
Join Date: May 2015
Posts: 15
Originally Posted by Fizzlemizz View Post
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.
  Reply With Quote