API UnitPowerMax

Returns the maximum power of the specified unit. maxPower = UnitPowerMax(unitToken [, powerType, unmodified])

Arguments

 * unitToken : string : UnitId
 * powerType : Enum.PowerType ? - Type of resource (mana/rage/energy/etc) to query
 * unmodified : boolean ? - Return the higher precision internal value (for graphical use only)

Returns

 * maxPower : number - The unit's maximum amount of the queried resource.

Details

 * If no type is specified, UnitPowerMax returns the current primary type, e.g., energy for a druid in cat form.
 * You can determine the current primary power type via

Example
Prints the maximum amount of mana for the player. /dump UnitPowerMax("player", Enum.PowerType.Mana)