From 97cdf436f3f52eb63cd61fbfa738d2da560e0f30 Mon Sep 17 00:00:00 2001 From: tbkizle Date: Tue, 13 Aug 2024 20:20:30 -0400 Subject: [PATCH] Fix GetSpellInfo for Retail --- PlexusStatusExternals.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PlexusStatusExternals.lua b/PlexusStatusExternals.lua index 398c58e..9ba3cc7 100644 --- a/PlexusStatusExternals.lua +++ b/PlexusStatusExternals.lua @@ -218,7 +218,7 @@ PlexusStatusExternals.tankingbuffs = tankingbuffs --luacheck: ignore 112 -- locals local PlexusRoster = Plexus:GetModule("PlexusRoster") --luacheck: ignore 211 -local GetSpellInfo = GetSpellInfo +local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo or GetSpellInfo local UnitBuff = UnitBuff local UnitGUID = UnitGUID local GetAuraDataByAuraInstanceID @@ -392,7 +392,8 @@ function PlexusStatusExternals:OnInitialize() --luacheck: ignore 112 for class, buffs in pairs(tankingbuffs) do --luacheck: ignore 213 for _, spellid in pairs(buffs) do - local sname = GetSpellInfo(spellid) + local spellInfo = GetSpellInfo(spellid) + local sname = C_Spell and spellInfo.name or spellInfo if not sname then print(spellid, ": Bad spellid") end spellnames[spellid] = sname or tostring(spellid) end