Skip to content

Commit

Permalink
Fix GetSpellInfo for Retail
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed Aug 14, 2024
1 parent 7b701e8 commit 97cdf43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PlexusStatusExternals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97cdf43

Please sign in to comment.