From f9583a85d8997a77f8bf33680340bc922a3b2ccb Mon Sep 17 00:00:00 2001 From: 4n0n <4n0n@tinkr.anon> Date: Tue, 30 Jul 2024 15:21:33 +0000 Subject: [PATCH] 11.0 11.0 --- src/SpellBook/SpellBook.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SpellBook/SpellBook.lua b/src/SpellBook/SpellBook.lua index 52119b8..243a4bd 100644 --- a/src/SpellBook/SpellBook.lua +++ b/src/SpellBook/SpellBook.lua @@ -48,6 +48,10 @@ end ---@param name string ---@return Spell function SpellBook:GetSpellByName(name) + if C_Spell.GetSpellInfo then + local info = C_Spell.GetSpellInfo(name) + return self:GetSpell(info.spellID) + end local _, rank, icon, castTime, minRange, maxRange, spellID, originalIcon = GetSpellInfo(name) return self:GetSpell(spellID) end