WoW:API UnitManaMax: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (This function is now depreciated.)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}


Returns the maximum amount of mana that the specified unit can have.
Returns the maximum amount of mana that the specified unit can have.  As of 3.0, this function has been replaced by [[API UnitPowerMax|UnitPowerMax]] as the preferred method of obtaining maximum unit power.


----
----

Revision as of 12:19, 12 July 2015

WoW API < UnitManaMax

Returns the maximum amount of mana that the specified unit can have. As of 3.0, this function has been replaced by UnitPowerMax as the preferred method of obtaining maximum unit power.


Usage
local maxmana = UnitManaMax("unit");

Arguments
unit
String - The UnitId of the unit whose MP should be returned

Returns
maxmana
Number - the unit's maximal mana points