I have a question for lua boffins! I'm struggling with my health on player characters.
I currently use this for my health tag to show the percentage and nothing else.
oUF.Tags.Methods['hp'] = function(u)
if UnitIsDead(u) or UnitIsGhost(u) or not UnitIsConnected(u) then
local per = oUF.Tags.Methods['perhp'](u).."" or 0
local min, max = UnitHealth(u), UnitHealthMax(u)
oUF.Tags.Events['hp'] = 'UNIT_HEALTH'
Having done a little bit of casual arena I have noticed a flaw! I need to see health values on player characters. Could anybody help me achieve this? I don't know what is used to question if the target is a player or an NPC. Just to add I'd like to see values in simple K format. So 324k for 324000 health.