Wikia

WoWWiki

Watchlist Recent changes

API UnitPower

Main Menue



Returns the power level of the specified unit.

power = UnitPower("unit" [, powerType]);

Contents

ArgumentsEdit

UnitId 
String - The UnitID of the unit whose power should be returned
powerType 
Number (optional) - The power type of the unit whose power should be returned

ReturnsEdit

power 
Number - the unit's current power level.

TypeEdit

If Type is omitted or nil, UnitPower returns the current primary type, e.g., energy for a druid in cat form. You can determine the current power type via UnitPowerType. Values for all power types are available in any form.

Also SeeEdit

Pages on WoWWiki

95,753pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki