Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the power level of the specified unit.

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

Arguments

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

Returns

power
Number - the unit's current power level.

Details

FrameXML defines constants that can be used for the 'type' argument, such as SPELL_POWER_ENERGY. If no type is specified, 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