Lua Unit HasPower

Parameters

 * (powerType)


 * powerType
 * Id of the power type to check (see known values).

Details

 * type
 * boolean


 * state
 * True if this unit has the specified power type.

Known Values

 * Health = -2
 * Mana = 0,
 * Rage = 1
 * Focus = 2
 * Energy = 3
 * Happiness = 4
 * Rune = 5
 * RunicPower = 6
 * WarlockSoulShards = 7
 * DruidEclipse = 8
 * PaladinHolyPower = 9
 * BossAlternatePower = 10
 * UnusedDarkForce = 11
 * MonkLightForceChi = 12
 * PriestShadowOrbs = 13
 * WarlockDestructionBurningEmbers = 14
 * WarlockDemonicFury = 15
 * ComboPoints = 16