Returns a unit's maximum mana, rage, energy or other power type. Returns the units current maximum power, if the unit does not exist then zero is returned. When querying with a powerType, as long as the unit exists you will get the maximum untalented power even if the class does not use the power type.


See also Unit functions.

Signature:

maxValue = UnitPowerMax("unitID" [, powerType])

Arguments:

  • unitID - A unit to query (string, unitID)
  • powerType - Specific power type to query for the unit (number, powerType)

Returns:

  • maxValue - The unit's maximum mana, rage, energy, or other power (number)