C_Spell. GetSpellPowerCost
functionimplementedavailable in: camelot
Returns a table containing one or more SpellPowerCostInfos, one for each power type this spell costs
function C_Spell.GetSpellPowerCost( spellIdentifier: SpellIdentifier): SpellPowerCostInfo[]?Parameters
| name | type |
|---|---|
spellIdentifier | SpellIdentifier |
Returns
powerCosts · SpellPowerCostInfo[]? · May return nil if spell is not found or has no resource costs
| field | type | description |
|---|---|---|
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 | boolean | 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 |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Spell system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.