>wowhelm_
~/forever/addon-api/table/SpellPowerCostInfo

SpellPowerCostInfo

documented structure · SpellShared
Structure SpellPowerCostInfo
──FIELDS
type
PowerType
name
string (The name or 'power token' for this power type (ex: MANA, FOCUS, etc))
cost
number (Full cost including optional cost; Optional cost is cost the spell will use but isn't required (ex: Rogue spell might cost 1CP but have optional cost of up to 5 more))
minCost
number (Cost excluding optional cost; This is min required to cast the spell)
costPercent
number (Cost as a percentage of base maximum resource; May be 0 if the cost is simply a flat cost)
costPerSec
number (Cost as a percentage of base maximum resource consumed per second, used by channel spells; May be 0 if cost is simply a flat cost)
requiredAuraID
number (An aura the caster must have for the cost to apply; Usually based on things like active spec or shapeshift form)
hasRequiredAura
bool (True if there is a requiredAuraID and the caster currently has that aura; Caster is either the current player or their pet, depending on spell type)
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.