WoW:API UnitPowerMax: Difference between revisions
Jump to navigation
Jump to search
(Reformatted page and changed to reference the powerType page) |
No edit summary |
||
Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
local maxpower = UnitPowerMax(UnitID | local maxpower = UnitPowerMax(UnitID , powerType); | ||
== Arguments == | == Arguments == |
Revision as of 12:26, 20 January 2013
← WoW API < UnitPowerMax
Returns the maximum power level of the specified unit. As of 3.0, this function has replaced UnitManaMax as the preferred method of obtaining maximum unit power.
Usage
local maxpower = UnitPowerMax(UnitID , powerType);
Arguments
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 UnitPowerType. However, values for all power types are available in any form.