#GetSpellPowerCost returned a nil value error
19 messages · Page 1 of 1 (latest)
With The War Within many functions of the API were deprecated, follow this link for more information #resources message
Change it with C_Spell.GetSpellPowerCost
so just change all instances of GetSpellPowerCost to that?
Yes
In the future, you can check the wiki for cases like these: https://warcraft.wiki.gg/wiki/API_GetSpellPowerCost
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)
so going off what you said theres only one GetSpellPowerCost in my aura and when i change it to the 11.0 version it still gives lua errors.
Paste the errors then
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
but wouldnt that only make it work for 1 spell instead of any spell that has a cost?
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