Skip to content

Commit 01fae92

Browse files
committed
#1732 GetSpellInfo to C_SPell.GetSPellInfo
1 parent 517594e commit 01fae92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GSE_Utils/Events.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ function GSE:UNIT_SPELLCAST_SUCCEEDED(event, unit, action)
117117
end
118118
end
119119
else
120-
local spell, _, _, _, _, _ = C_Spell.GetSpellInfo(elements[6])
121-
local fskilltype, _ = GetSpellBookItemInfo(spell)
120+
local spellInfo = C_Spell.GetSpellInfo(elements[6])
121+
local spell = spellInfo and spellInfo.name
122+
local fskilltype, _ = spell and GetSpellBookItemInfo(spell)
122123
if not GSE.isEmpty(fskilltype) then
123124
if GSE.RecorderActive then
124125
GSE.GUIRecordFrame.RecordSequenceBox:SetText(

0 commit comments

Comments
 (0)