Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API UnitPowerMax

From Wowpedia
Jump to: navigation, search

Returns the maximum power of the specified unit.

maxpower = UnitPowerMax(UnitId[, powerType][, unmodified])


String - Unit whose maximum power should be returned
String (optional) - Type of resource (mana/rage/energy/etc) to query
Boolean (optional) - Return the higher precision internal value (for graphical use only)


Number - the unit's maximum amount of the queried resource.


  • 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 UnitPowerType.
  • Values for all power types are available in any form.
  • As of 3.0, this function has replaced UnitManaMax.

Also See