Add tag for short smart current hp
Holmelund opened this issue ยท 0 comments
Could you add a tag for [ssmarthp]?
I've added this tag myself:
["ssmarthp"] = function(unit)
local hp
hp = UnitHealth(unit)
if hp < 1 or (hp == 1 and not UnitIsVisible(unit)) then
if UnitDebuff(unit,2) or UnitBuff(unit,2) then
return L["Feigned"]
else
return L["Dead"]
end
end
if hp > 10000 then
hp = math.floor(hp/1000).."K"
end
if UnitIsGhost(unit) then
return "Ghost"
elseif not UnitIsConnected(unit) then
return "Offline"
end
return hp
end;
but it would be nice if it was part of the default options: