Wikia

WoWWiki

Watchlist Recent changes

API UnitPowerMax

Main Menue



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.

Contents

Usage Edit

local maxpower = UnitPowerMax(UnitID [, powerType]);

Arguments Edit

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 Edit

maxpower 
Number - the unit's maximum power level

Details Edit

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.

Pages on WoWWiki

94,212pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,639photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki