# GetSpellPowerCost is not in World of Warcraft Forever: write C_Spell.GetSpellPowerCost

Forever 1.60.1 (70959), Interface 16001. An addon that calls `GetSpellPowerCost` stops at /reload with `attempt to call global 'GetSpellPowerCost' (a nil value)`. Write `C_Spell.GetSpellPowerCost`; its arguments and returns may differ from the old GetSpellPowerCost, read them first. Page: https://wowaddons.gg/forever-api/C_Spell.md

```lua
powerCosts = C_Spell.GetSpellPowerCost(spellIdentifier)
```

Returns a table containing one or more SpellPowerCostInfos, one for each power type this spell costs; May return nil if spell is not found or has no resource costs

May return nothing.

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `powerCosts`: SpellPowerCostInfo[]

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
