Skip to content

Commit

Permalink
Fix error from 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
parnic committed Aug 14, 2024
1 parent 96cac06 commit 89191ad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Breakables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.10.2:

- Fix error from 11.0.2

v1.10.1:

- Update Classic-era TOC for 1.15.3
Expand Down

0 comments on commit 89191ad

Please sign in to comment.