Returns a unit's maximum health value
See also Unit functions.
Signature:
maxValue
=
UnitHealthMax("unit")
or
UnitHealthMax("name")
Arguments:
unit
- A unit to query (string
, unitID)name
- The name of a unit to query; only valid forplayer
,pet
, and party/raid members (string
)
Returns:
maxValue
- The unit's maximum health (hit points) (number
)