View Single Post
03-10-16, 12:46 PM   #27
slayos
A Deviate Faerie Dragon
 
slayos's Avatar
Join Date: May 2015
Posts: 15
Originally Posted by Fizzlemizz View Post
Something like:

Code:
local s = Status(unit)
if s then
	return s
end
local cur, max = HP(unit), MaxHP(unit)
local perc = Percent(cur,max)
local ret
if perc >= 76 then
	ret = "|cff00d036%s"
elseif perc >= 26 then
	ret = "|cfff19c08%s"
else
	ret = "|cfff10808%s"
end
if UnitIsFriend(unit,"player") then
	ret = ret.."|r"
	return ret,cur
else
	ret = ret.."%%"|r"
	return ret,perc
end
Doesn't work :P
  Reply With Quote