Describe the bug
A clear and concise description of what the bug is.
2x NameplateCooldowns/src/utilities.lua:94: attempt to call upvalue 'GetSpellInfo' (a nil value)
[string "@NameplateCooldowns/src/utilities.lua"]:94: in function <NameplateCooldowns/src/utilities.lua:93>
[string "@NameplateCooldowns/NameplateCooldowns.lua"]:183: in function BuildCooldownValues' [string "@NameplateCooldowns/NameplateCooldowns.lua"]:210: in function <...aceNameplateCooldowns/NameplateCooldowns.lua:207> [string "@NameplateCooldowns/NameplateCooldowns.lua"]:882: in function?'
[string "@NameplateCooldowns/NameplateCooldowns.lua"]:777: in function <...aceNameplateCooldowns/NameplateCooldowns.lua:777>
WoW version Retail, Classic, WotLK...
Retail 11.0.2
Describe the bug A clear and concise description of what the bug is.
2x NameplateCooldowns/src/utilities.lua:94: attempt to call upvalue 'GetSpellInfo' (a nil value) [string "@NameplateCooldowns/src/utilities.lua"]:94: in function <NameplateCooldowns/src/utilities.lua:93> [string "@NameplateCooldowns/NameplateCooldowns.lua"]:183: in function
BuildCooldownValues' [string "@NameplateCooldowns/NameplateCooldowns.lua"]:210: in function <...aceNameplateCooldowns/NameplateCooldowns.lua:207> [string "@NameplateCooldowns/NameplateCooldowns.lua"]:882: in function
?' [string "@NameplateCooldowns/NameplateCooldowns.lua"]:777: in function <...aceNameplateCooldowns/NameplateCooldowns.lua:777>Locals: t =
GetSpellInfo is deprecated; see https://warcraft.wiki.gg/wiki/API_C_SpellBook.GetSpellInfo
Change the file NameplateCooldowns/src/utilities.lua on line 94:
local spellName = GetSpellInfo(key);
tolocal spellName = C_Spell.GetSpellInfo(key);
And on line 86:
local texture = GetSpellTexture(key);
tolocal texture = C_Spell.GetSpellTexture(key);
Don't do this, you may lose all addon settings.
C_Spell.GetSpellInfo
is not a just replacement ofGetSpellInfo
, it returns tableOn my side it works without loosing anything.
I've pushed version
110002.1-release
.Thx