Skip to content

Get Spell Info

Game Version Wrapper

Wrapper around C_Spell.GetSpellInfo that returns the legacy tuple shape many addon integrations still expect.

NamespaceEModuleCoreLifecyclewrapper
E:GetSpellInfo(spellID)

Wrapper around C_Spell.GetSpellInfo that returns the legacy tuple shape many addon integrations still expect.

  • spellID: Numeric spell id.

name, nil, iconID, castTime, minRange, maxRange, spellID, originalIconID, or nil when unavailable.

local name, _, icon = E:GetSpellInfo(190319)
if name then
iconTexture:SetTexture(icon)
end

Prefer this in addon code that wants ElvUI client-version compatibility.

Source: ElvUI/Game/Shared/General/API.lua:497