Skip to content

Commit

Permalink
Fix undefined 'icon' field in GetSpellBookItemInfo
Browse files Browse the repository at this point in the history
It looks like the WoW API now uses iconID instead of icon when retrieving spell book information.
  • Loading branch information
joshjau committed Feb 16, 2025
1 parent b32de9e commit 7bdfba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local UnpackAuraData = AuraUtil.UnpackAuraData
local GetSpellBookItemInfo = function(index, bookType)
local spellBank = ( bookType == "spell" or bookType == Enum.SpellBookItemType.Spell ) and Enum.SpellBookSpellBank.Player or Enum.SpellBookSpellBank.Pet
local info = C_SpellBook.GetSpellBookItemInfo(index, spellBank)
if info then return info.name, info.icon, info.spellID end
if info then return info.name, info.iconID, info.spellID end
end

ns.UnitBuff = function( unit, index, filter )
Expand Down

0 comments on commit 7bdfba6

Please sign in to comment.