Skip to content

Commit

Permalink
removed deprecated uses of GetItemInfo and Count
Browse files Browse the repository at this point in the history
  • Loading branch information
ollidiemaus committed Aug 16, 2024
1 parent 2354c26 commit c751bbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AutoPotion.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Core/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion FrameXML/InterfaceOptionsFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit c751bbe

Please sign in to comment.