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.
unitID- A unit to query (
powerType- Specific power type to query for the unit (
maxValue- The unit's maximum mana, rage, energy, or other power (