PowerType

From Wowpedia
Jump to: navigation, search

Many of the API functions which are used to gather information about a unit in the game world (Players, NPC's, Monsters, etc) will return information about types of powers that various units use as a basis for using abilities.

Constants

These are found in FrameXML\Constants.lua.

Variable Value Description
SPELL_POWER_MANA 0 Mana will range from 0 to the maximum mana a unit has. Player mana pools are of a fixed size for all specializations except Arcane Mages, whose mastery increases their maximum mana. Players naturally regenerate mana at a constant rate dependent on their specialization, both in and out of combat, and some abilities and effects (ex [Life Tap], [Power Word: Solace], [Resurgence]) can directly generate mana. This is the default power type for most non-player units, although there are exceptions.
SPELL_POWER_RAGE 1 Rage is used by Warriors and Druids in bear form. Rage goes from 0 to 100, but may be increased via player talents. Rage is generated by abilities and, for some specializations, taking damage or dealing damage with auto-attacks. Rage will decay to 0 while out of combat.
SPELL_POWER_FOCUS 2 WotLK Focus is used by Hunters and their pets. Focus goes from 0 to 100, though this can be increased by spec passives. It has a relatively has a slow regeneration rate, but certain abilities will generate focus directly.
SPELL_POWER_ENERGY 3 Energy is used by Rogues, Monks, and Druids in cat form. Energy goes from 0 to 100, but may be increased via player talents and spec passives. Energy regenerates rapidly.
SPELL_POWER_COMBO_POINTS 4 WoD Combo Points are used by Rogues and Druids in cat form. Combo Points goes from 0 to 5, but can increase up to 10 the [Anticipation] talent. Combo Points are generated by abilities, talents, and passives, and are consumed by Finishing Moves to increase their potency. Combo Points will decay to 0 while out of combat. This value was previously used for hunter pets' happiness, which was deprecated in Cataclysm.
SPELL_POWER_RUNES 5 WotLK Runes are used as a power type for Death Knights. Deathknights have 6 runes available. As of Legion, Deathknights no longer have different types of runes, and instead all 6 runes can be used for any ability which consumes them. Up to 3 runes can be regenerating at a time, with the other 3, if depleted, effectively having a recharge time of up to twice the normal rune recharge time. Rune recharge rate can be accelerated through [Runic Corruption], or runes can be instantly activated using [Blood Tap] or [Runic Empowerment], as well as a number of talents and set bonuses.
SPELL_POWER_RUNIC_POWER 6 WotLK Runic Power is used by Death Knights. It is gained via certain abilities, and spent on others, which often help regenerate additional runes. Runic Power will decay to 0 while out of combat.
SPELL_POWER_SOUL_SHARDS 7 WotLK Soul Shards are collected by Warlocks, and range from 1 to 5, represented the number of filled Soul Shards. As of Legion, this resources is now used by all 3 Warlock specializations. Soul Shards will naturally regenerate or decay as needed while out of combat until they reach 3 out of 5 filled.
SPELL_POWER_LUNAR_POWER 8 Legion Astral Power is used by Druids in moonkin form. Astral power goes from 0 to 100. Astral power will decay to 0 while out of combat.
SPELL_POWER_HOLY_POWER 9 WotLK Holy Power is used by Retribution Paladins. Holy Power will decay to 0 while out of combat.
ALTERNATE_POWER_INDEX 10 Cataclysm New power type since Cataclysm. Known uses: sound level on Atramedes, corruption level on Cho'gall, consumption level while in Iso'rath.
SPELL_POWER_ALTERNATE_POWER 10 MoP The new (renamed) variable representing alternate power in Mists of Pandaria
SPELL_POWER_MAELSTROM 11 Legion New Shaman Resource in Legion, used by both Enhancement and Elemental shamans. Maelstrom will decay to 0 while out of combat.
SPELL_POWER_CHI 12 MoP Chi is used by Windwalker Monks. Chi will decay to 0 while out of combat.
SPELL_POWER_INSANITY 13 Legion Insanity is used by Shadow Priests. Insanity is generated by most Shadow Priest abilities, and will be consumed at an ever-increasing rate while the priest is in [Voidform], until it reaches 0 and the priest leaves Voidform (or dies horribly if [Surrender to Madness] is active). Insanity will decay to 0 while out of combat even if the priests is not in [Voidform].
SPELL_POWER_OBSOLETE 14 MoP Burning Embers were used by Destruction Warlocks prior to Legion, which consolidated all warlock specs to use Soul Shards. Value returned would range from 1 to 3 (4 with  [Glyph of Burning Embers], representing number of completely filled Burning Embers. If a third argument "true" is included with UnitPower or UnitPowerMax, the value would instead range from 0 to 30 (40 with  [Glyph of Burning Embers]), representing the individual segments in each Ember. Each Ember had 10 segments, and most effects that generate Embers generate 1 segment per effect (for example, a cast of Incinerate generates one segment, so 10 casts generates a full Ember). As of Legion, this power type is now obsolete.
SPELL_POWER_OBSOLETE2 15 MoP [Demonic Fury] was used by Demonology Warlocks prior to Legion, which consolidated all warlock specs to use Soul Shards. Value returned would range from 0 to 1000. As of Legion, this power type is now obsolete.
SPELL_POWER_ARCANE_CHARGES 16 Legion Arcane Mage resource. Arcane Charges will decay to 0 while out of combat.
SPELL_POWER_FURY 17 Legion Havoc Demon Hunter. Fury is generated by [Demon's Bite], as well as a number of talents, and consumed by most Havoc abilities. Fury ranges from 0 to 100, though artifact traits can increase this to up to 160 (currently). Fury will decay to 0 while out of combat.
SPELL_POWER_PAIN 18 Legion Vengeance Demon Hunter. Pain is generated by several Vengeance abilities (ex. [Shear], [Felblade]), and consumed by several others (ex. [Soul Cleave], [Demon Spikes]), predominantly for defensive purposes. A small amount of Pain is also generated when the Demon Hunter takes damage. Pain will decay to 0 while out of combat.

Others

There are two other types, AMMOSLOT and FUEL, as returned by UnitPowerType. These are used by vehicles, but do not appear to have a constant associated with them.

Notes

  • The differentiation between these power types in the API was added in patch 4.0