diff --git a/AutoPotion.toc b/AutoPotion.toc index fddc68b..0ef11c8 100755 --- a/AutoPotion.toc +++ b/AutoPotion.toc @@ -2,7 +2,7 @@ ## Interface-Classic: 11503 ## Interface-WOTLKC: 30403 ## Interface-Cata: 40400 -## Version: 3.5.5 +## Version: 3.5.6 ## Title: Auto Potion ## Author: ollidiemaus ## Notes: Updates the Macro AutoPotion to use either Healthstone or the highest Potion found in Bags diff --git a/Core/Item.lua b/Core/Item.lua index f08af82..9f49b9c 100755 --- a/Core/Item.lua +++ b/Core/Item.lua @@ -9,7 +9,7 @@ ham.Item.new = function(id, name) self.name = name local function setName() - local itemInfoName = GetItemInfo(self.id) + local itemInfoName = C_Item.GetItemInfo(self.id) if itemInfoName ~= nil then self.name = itemInfoName end @@ -20,7 +20,7 @@ ham.Item.new = function(id, name) end function self.getCount() - return GetItemCount(self.id, false, false) + return C_Item.GetItemCount(self.id, false, false) end return self diff --git a/FrameXML/InterfaceOptionsFrame.lua b/FrameXML/InterfaceOptionsFrame.lua index d32c4c5..a681b4b 100644 --- a/FrameXML/InterfaceOptionsFrame.lua +++ b/FrameXML/InterfaceOptionsFrame.lua @@ -138,7 +138,7 @@ function panel:updatePrio() end if next(ham.itemIdList) ~= nil then for i, id in ipairs(ham.itemIdList) do - local itemID, itemType, itemSubType, itemEquipLoc, iconTexture, classID, subclassID = GetItemInfoInstant(id) + local iconTexture, originalIconTexture = C_Spell.GetSpellTexture(id) local currentFrame = prioFrames[i + spellCounter] local currentTexture = prioTextures[i + spellCounter]