Originally Posted by Fizzlemizz
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%