#GetSpellPowerCost returned a nil value error

19 messages · Page 1 of 1 (latest)

flint quest
#

Hi, I just popped on for prepatch and my resource bar WA is giving me the above error. Is this an easy fix or is it better to just look for a new one?

mighty field
#

It was moved into the C_Spell namespace

#

!deprecated

quick prairieBOT
#

With The War Within many functions of the API were deprecated, follow this link for more information ⁠#resources message

peak quail
#

Change it with C_Spell.GetSpellPowerCost

flint quest
limpid canopy
#

Yes

#

You'll see that there's this box there at the top that says it's something different in 11.0 (and a "minus" and "11.0" next to the one you have there, meaning it got removed)

flint quest
limpid canopy
#

Paste the errors then

flint quest
limpid canopy
#

Yeah that's something different now.
Bad argument 1 to ....

#

You need to make sure that the argument for C_Spell.GetSpellPowerCost is actually a SpellID or name

flint quest
#

but wouldnt that only make it work for 1 spell instead of any spell that has a cost?

limpid canopy
#

That function, in the past and now, only ever returned the cost table for one spell. The spell you pass as an argument

#

If you get info about multiple spells from it, then it is because you use it multiple times in a loop or something like that

#

If you want you can paste the aura here and I can have a look in 2 hours or so when I'm home