View Single Post
12-04-08, 12:59 PM   #287
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by ObbleYeah View Post
New issue, using a custom tag but it's not doing what i want it to

Code:
oUF.Tags['[missinghp]']  = function(u) if min~=max then return UnitHealthMax(u) - UnitHealth(u) else return "" end end  

oUF.TagEvents["[missinghp]"]   = "UNIT_HEALTH UNIT_MAXHEALTH"
I want it to display missing hp and not show at 0, but it's still showing when min=max. Can't work out what i've got wrong here >.<
What is min and what is max? its not stated anywhere!