As the linked code above shows, UnitPower has two arguments: unit and type. Type is a number and is one of the numbers I posted above.
Usage: UnitPower(unit,type)
This returns player mana: UnitPower("player",0)
This returns player insanity: UnitPower("player",13)
This returns max player mana: UnitPowerMax("player",0)
This returns max player insanity: UnitPowerMax("player",13)
|