WoW:API UnitManaMax: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API UnitManaMax to API UnitManaMax without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<center>'''UnitManaMax''' ''-Documentation by [[User:DerGhulbus|DerGhulbus]]-''</center>
{{stub/API}}
{{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.{{fact|Patch 3.0.n?}}


----
----
Line 17: Line 18:


:;maxmana : Number - the unit's maximal mana points
:;maxmana : Number - the unit's maximal mana points
----
{{Template:WoW API}}
[[Category:API Unit Functions|UnitMana]]

Latest revision as of 04:47, 15 August 2023

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.[citation needed]


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