View Single Post
03-10-16, 12:10 PM   #20
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
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 (this will change the display for any unfriendly target) you woulld need to substitute
Code:
else
	return "%s/%s",Short(cur,true),Short(max,true)
for
Code:
else
	return Percent(cur,max)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-10-16 at 12:16 PM.
  Reply With Quote