Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Talk:API UnitHealth

Discussion page of API UnitHealth

Always returns 100 on "target" for me => percentage

Returns actual absolute value when targeting myself. Maybe a protection for viewing other peoples stats

In group?

I've seen code, for example in CastParty, that uses interpolation when a target is not in your group. So, I think this means you get (1) absolute health values for either yourself, or for party members, and (2) percentage values for everyone else. If true, the documentation should be updated to explain this behaviour.

Absolute values if unit is in the party

No matter what unitId is given, it will return the absolute value if that unit is in the party. I have updated the documentation to clarify this.