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 calculated based on a base mana pool plus a certain amount given by the Intellect stat. 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 degenerates back to 0 out of combat.
SPELL_POWER_FOCUS 2 Focus is used by Hunters and hunter pets. Focus goes from 0 to 100, and has a slow regeneration rate, but certain abilities will generate focus.
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.
SPELL_POWER_HAPPINESS 4 Happiness goes from 0 to 100, is used by hunter pets, and affects their damage output. Happiness can be increased by the spells Mend Pet or Feed Pet via a minor glyph. Removed in Patch 4.1.0.
SPELL_POWER_RUNES 5 WotLK Runes are used as a power type for Death Knights. By default, they have 6 runes (1 & 2 are blood, 3 & 4 are frost, 5 & 6 are unholy), but certain talents and abilities may change the type of a rune. Runes can be converted into a Death Rune, which can be used as any other type of rune.
SPELL_POWER_RUNIC_POWER 6 WotLK Runic Power is used by Death Knights. It is gained via certain abilities.
SPELL_POWER_SOUL_SHARDS 7 WotLK [Soul Shards] are collected by Affliction Warlocks, and range from 1 to 3 (4 with [[Glyph of Soul Shards), represented the number of completely filled Soul Shards. If a third argument "true" is included in UnitPower or UnitPowerMax, the return will instead range from 0 to 300 (400 with Glyph of Soul Shards. Each 100 represents a full shard. All abilities that return or consume shards add or subtract 100 from this value. The only time the other digits come into play is from out-of-combat shard regen (which regens at a rate of 5 per second, or a full shard every 20 seconds).
SPELL_POWER_ECLIPSE 8 WotLK [Eclipse] is used by Druids in moonkin form. Eclipse power goes from -100 to 100, and its use as solar or lunar power is determined by what buff is active on the player. Buffs activate at -100 and 11 respectively and remain on the player until the power crosses the 0 threshold.
SPELL_POWER_HOLY_POWER 9 WotLK Holy Power is used by Paladins.
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_DARK_FORCE 11 MoP Currently unused.
SPELL_POWER_CHI 12 MoP The power type for the Chi resource, used by Monks.
SPELL_POWER_SHADOW_ORBS 13 MoP [Shadow Orbs] are used by Shadow Priests.
SPELL_POWER_BURNING_EMBERS 14 MoP Burning Embers are used by Destruction Warlocks. Value returned will 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 will instead range from 0 to 30 (40 with  [Glyph of Burning Embers]), representing the individual segments in each Ember. Each Ember has 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).
SPELL_POWER_DEMONIC_FURY 15 MoP [Demonic Fury] is used by Demonology Warlocks. Value returned will range from 0 to 1000.

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