API UnitPower

Returns the current power of the specified unit. power = UnitPower(unitToken [, powerType, unmodified])

Arguments

 * unitToken : string : UnitId
 * powerType : Enum.PowerType ? - Type of resource (mana/rage/energy/etc) to query
 * unmodified : boolean ? - Return the higher precision internal value (for graphical use only)

Returns

 * power : number - the unit's current power level

Details

 * 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 primary power type via

Example
Prints the current amount of mana for the player. /dump UnitPower("player", Enum.PowerType.Mana)