|
https://wowprogramming.com/docs/api/UnitPower.html
power = UnitPower("unitID" [, powerType])
Arguments:
unitID - A unit to query (string, unitID)
powerType - A specific power type to query (number, powerType)
Returns:
power - The unit's current level of mana, rage, energy, runic power, or other power type (number)
Type: powerType
Index of different power types. The SPELLPOWER* global constants are deprecated and will be removed with the expansion after Legion. Use the contents of Enum.PowerType instead.
0 - Mana (SPELL_POWER_MANA or Enum.PowerType.Mana)
1 - Rage (SPELL_POWER_RAGE or Enum.PowerType.Rage)
2 - Focus (SPELL_POWER_FOCUS or Enum.PowerType.Focus)
3 - Energy (SPELL_POWER_ENERGY or Enum.PowerType.Energy)
4 - Combo Points (SPELL_POWER_COMBO_POINTS or Enum.PowerType.ComboPoints)
5 - Runes (SPELL_POWER_RUNES or Enum.PowerType.Runes)
6 - Runic Power (SPELL_POWER_RUNIC_POWER or Enum.PowerType.RunicPower)
7 - Soul Shards (SPELL_POWER_SOUL_SHARDS or Enum.PowerType.SoulShards)
8 - Lunar Power (SPELL_POWER_LUNAR_POWER or Enum.PowerType.LunarPower)
9 - Holy Power (SPELL_POWER_HOLY_POWER or Enum.PowerType.HolyPower)
10 - Alternate Power (SPELL_POWER_ALTERNATE_POWER or Enum.PowerType.Alternate)
11 - Maelstrom (SPELL_POWER_MAELSTROM or Enum.PowerType.Maelstrom)
12 - Chi (SPELL_POWER_CHI or Enum.PowerType.Chi)
13 - Insanity (SPELL_POWER_INSANITY or Enum.PowerType.Insanity)
14 - unused (SPELL_POWER_OBSOLETE or Enum.PowerType.Obsolete)
15 - unused (SPELL_POWER_OBSOLETE2 or Enum.PowerType.Obsolete2)
16 - Arcane Charges (SPELL_POWER_ARCANE_CHARGES or Enum.PowerType.ArcaneCharges)
17 - Fury (SPELL_POWER_FURY or Enum.PowerType.Fury)
18 - Pain (SPELL_POWER_PAIN or Enum.PowerType.Pain)
|
|