GetSpellInfo removed?

Hey,

i tried to work on an old addon of mine which makes use of GetSpellInfo https://wowwiki-archive.fandom.com/wiki/API_GetSpellInfo

But the function seems to not exist anymore. Do i miss something or is there an alternative?

This worked before local spellName = GetSpellInfo(31224)

Was indeed removed https://warcraft.wiki.gg/wiki/API_C_Spell.GetSpellName

Use local spellName = C_Spell.GetSpellName(31224)

1 Like
local GetSpellInfo = GetSpellInfo or function(spellID)
  if not spellID then
    return nil;
  end

  local spellInfo = C_Spell.GetSpellInfo(spellID);
  if spellInfo then
    return spellInfo.name, nil, spellInfo.iconID, spellInfo.castTime, spellInfo.minRange, spellInfo.maxRange, spellInfo.spellID, spellInfo.originalIconID;
  end
end
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.