From 89191ad2990659b7ad975f62daa63240cd66f9ad Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 14 Aug 2024 13:34:16 -0500 Subject: [PATCH] Fix error from 11.0.2 --- Breakables.lua | 19 +++++++++++++++++++ changelog.txt | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/Breakables.lua b/Breakables.lua index 06355cf..12de4ac 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -34,6 +34,25 @@ if C_Container then end end +local GetSpellInfo = GetSpellInfo +if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then + GetSpellInfo = function(id) + if not id then + return nil + end + + local info = C_Spell.GetSpellInfo(id) + if info then + return info.name, nil, info.iconID + end + end +end + +local IsUsableSpell = IsUsableSpell +if not IsUsableSpell and C_Spell and C_Spell.IsSpellUsable then + IsUsableSpell = C_Spell.IsSpellUsable +end + local EQUIPPED_LAST = EQUIPPED_LAST if not EQUIPPED_LAST then EQUIPPED_LAST = INVSLOT_LAST_EQUIPPED diff --git a/changelog.txt b/changelog.txt index 02ea195..4297e67 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +v1.10.2: + +- Fix error from 11.0.2 + v1.10.1: - Update Classic-era TOC for 1.15.3