View Single Post
03-10-16, 12:23 PM   #23
slayos
A Deviate Faerie Dragon
 
slayos's Avatar
Join Date: May 2015
Posts: 15
Originally Posted by Fizzlemizz View Post
Code:
local s = Status(unit)
if s then
	return s
end
local cur, max = HP(unit), MaxHP(unit)
local perc = Percent(cur,max)
if UnitIsFriend(unit,"player") then
	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
else
	return perc
end
an issue has accured, on target "friendly" it shows their name exactly as i want it however with a % behind it, so let's say i got 418500 health it displays like this 418500% and on unfriendly target it displays like i want ut however 100 instred of 100%
  Reply With Quote