Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local health = UnitHealth("target")
- local abbr = ""
- if health >= 10000 then
- health = health / 1000
- abbr = "k"
- end
- if health >= 10000 then
- health = health / 1000
- abbr = "m"
- end
- return ("%.0f%s"):format(health, abbr)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement