diff --git a/modules/LinkInfoIcons.lua b/modules/LinkInfoIcons.lua index 3a6a932..c5ee845 100644 --- a/modules/LinkInfoIcons.lua +++ b/modules/LinkInfoIcons.lua @@ -334,7 +334,13 @@ end local function SubInSpellInfo(link) local spellID = tonumber(link:match("Hspell:(%d+)")) - local icon = select(3, GetSpellInfo(spellID)) + local icon + if C_Spell and C_Spell.GetSpellInfo then + local info = C_Spell.GetSpellInfo(spellID) + icon = info and info.iconID + else + icon = select(3, GetSpellInfo(spellID)) + end local res = link if module.db.profile.spell.icon and icon then