Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API UnitPowerMax
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} Returns the maximum power level of the specified unit. As of 3.0, this function has replaced [[API_UnitManaMax|UnitManaMax]] as the preferred method of obtaining maximum unit power. == Usage == local maxpower = UnitPowerMax(UnitID , powerType); == Arguments == :;[[API TYPE UnitId|UnitId]] : String - The UnitID of the unit whose maximum power should be returned :;[[powerType]] : Number (optional) - The power type of the unit whose maximum power should be returned == Returns == :;maxpower : Number - the unit's maximum power level == 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 power type via [[API UnitPowerType|UnitPowerType]]. However, values for all power types are available in any form.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)