API UnitPowerMax

Returns the maximum power resource of the unit.
 maxPower = UnitPowerMax(unitToken [, powerType, unmodified])
==Arguments==
:;unitToken: : UnitId
:;powerType: - Type of resource (mana/rage/energy/etc) to query
:;unmodified: - Return the higher precision internal value (for graphical use only)
==Returns==
:;maxPower: - 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)
==Patch changes==