Fandom

WoWWiki

API UnitPower

104,631pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < UnitPower

Returns the power level of the specified unit.

power = UnitPower("unit" , powerType);

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

Also on Fandom

Random Wiki