WoW API: UnitPower

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API UnitPower to API UnitPower without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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