From 7bdfba6c093d9eb0927e47dd296a44aa0c397675 Mon Sep 17 00:00:00 2001 From: Joshua <37181202+joshjau@users.noreply.github.com> Date: Sun, 16 Feb 2025 14:26:18 +0800 Subject: [PATCH] Fix undefined 'icon' field in GetSpellBookItemInfo It looks like the WoW API now uses iconID instead of icon when retrieving spell book information. --- Utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils.lua b/Utils.lua index 2c99ee45f..1e474af89 100644 --- a/Utils.lua +++ b/Utils.lua @@ -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 )