Skip to content

Commit

Permalink
Merge pull request #4372 from joshjau/utils
Browse files Browse the repository at this point in the history
Fix undefined 'icon' field in GetSpellBookItemInfo
  • Loading branch information
Hekili authored Feb 16, 2025
2 parents b32de9e + 7bdfba6 commit ebeca15
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 ebeca15

Please sign in to comment.