API UnitPower

Returns the current power resource of the unit.
 power = UnitPower(unitToken [, powerType, unmodified])
==Arguments==
:;unitToken: : UnitId
:;powerType: - Type of resource (mana/rage/energy/etc) to query
:;unmodified: - Return the higher precision internal value (for graphical use only)
==Returns==
:;power: - the unit's current power level
==Values==
==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)
==Patch changes==