GetSpellInfo
ryulinho opened this issue ยท 5 comments
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 =
}
key = 199483
(*temporary) = nil
(*temporary) = 199483
(*temporary) = "attempt to call upvalue 'GetSpellInfo' (a nil value)"
GetSpellInfo = nil
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);
to
local spellName = C_Spell.GetSpellInfo(key);
And on line 86:
local texture = GetSpellTexture(key);
to
local texture = C_Spell.GetSpellTexture(key);
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 of GetSpellInfo
, it returns table