Broken in 11.0.2 due to API removal by Blizzard
Sipollo opened this issue ยท 0 comments
I'm now seeing the following error on death:
2x DeathNote/Format.lua:120: attempt to call global 'GetSpellInfo' (a nil value)
[string "@DeathNote/Format.lua"]:120: in function <DeathNote/Format.lua:119>
[string "@DeathNote/Format.lua"]:231: in function '?'
This is thanks to Blizzard removing GetSpellInfo()
and replacing it with C_Spell.GetSpellInfo()
which also returns a table instead of a list; the following came from the MikScrollingBattleText CurseForge comments - it had the same issue.
local function GetSpellInfo(SpellId)
local gsi_table = C_Spell.GetSpellInfo(SpellId)
if gsi_table == nil then
return nil
end
return gsi_table.name, gsi_table.rank, gsi_table.originalIconID, gsi_table.castTime, gsi_table.minRange, gsi_table.maxRange, gsi_table.spellID, gsi_table.originalIcon
end