Wikia

WoWWiki

PowerType

Talk0
101,313pages on
this wiki
API types

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 Edit

These are found in FrameXML\Constants.lua.

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 and Druids in cat form. Energy goes from 0 to 100, but may be increased via player talents.
SPELL_POWER_HAPPINESS = 4 
(obsolete -- no longer used)
SPELL_POWER_RUNES = 5 
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. While runes are used by Death Knights, it does not appear that the Blizzard UI code uses this spell power type. Rather, runes are managed through the RUNE_POWER_UPDATE event via the GetRuneCooldown() API call.
SPELL_POWER_RUNIC_POWER = 6 
Runic power is used by Death Knights. It is gained via certain abilities, and does not degenerate out of combat.
SPELL_POWER_SOUL_SHARDS = 7 
Soul Shards are collected by Warlocks, and range from 0 to 3 indicating how many are available. Soul Shards do not degenerate out of combat.
SPELL_POWER_ECLIPSE = 8 
Eclipse is used by Druids in moonkin form. Eclipse power goes from 0 to 100, and its use as solar or lunar power is determined by what buff is active on the player.
SPELL_POWER_HOLY_POWER = 9 
Holy power is used by Paladins.
SPELL_POWER_ALTERNATE_POWER = 10 
Appears to be used by some bosses. Does not appear in Blizzard UI code
SPELL_POWER_DARK_FORCE = 11 
Does not appear in Blizzard UI code, notably semantically "opposite" to SPELL_POWER_LIGHT_FORCE.
SPELL_POWER_LIGHT_FORCE = 12 
This power appears as Chi on the Monk's unit frame, who gains between 0 to 4 Chi points (6 Chi points with Ascendance selected) through the use of certain class spells while required in varying numbers to use other class spells and do not degenerate over time.
SPELL_POWER_SHADOW_ORBS = 13 
Used by Shadow Priests who gain between 0 and 3 from the use of Mind Blast and Shadow Word: Death and used to cast and empower Psychic Horror and Devouring Plague. Shadow Orbs do not decay over time.
SPELL_POWER_BURNING_EMBERS = 14 
A new resource type added for Destruction Warlocks in the Mists of Pandaria 5.0 expansion. Up to three burning embers are accumulated by the Warlock through the casting of certain spells and used to power up the damage resulting from the casting of other spells. Up to 10 points are accumulated per ember (MAX_POWER_PER_EMBER) before the ember is empowered.
SPELL_POWER_DEMONIC_FURY = 15 
A mana-like resource ranging in value between 0 and 1000 for Demonology Warlocks, accumulated through the use of certain Warlock spells and spent while using Metamorphosis.

Others Edit

There are two other types, AMMOSLOT and FUEL, as returned by {api UnitPowerType|UnitPowerType}. These are used by vehicles, but do not appear to have a constant associated with them. Some raid bosses have a special "encounter meter" which is sometime based on a powertype (ex. Atramedes, powertype=10 rises during the fight)

Notes Edit

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

Around Wikia's network

Random Wiki