Wikia

WoWWiki

API UnitPower

Talk0
98,523pages on
this wiki
Revision as of 12:21, January 20, 2013 by Spyforce (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the power level of the specified unit.

power = UnitPower("unit" , powerType);

Contents

Arguments

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

Returns

power 
Number - the unit's current power level.

Type

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 See

Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki