Skip to content

Commit

Permalink
Ignores pouches that require a higher character level
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Cobb committed Sep 28, 2024
1 parent d6ca70e commit 50dd217
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenThosePouches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ local function IsPouch(container, slot)
end
end

local link = C_Container.GetContainerItemLink(container, slot)
local _, _, _, _, itemMinLevel = C_Item.GetItemInfo(link)
if itemMinLevel ~= nil and itemMinLevel > UnitLevel("player") then
return false
end

return true
end

Expand Down

0 comments on commit 50dd217

Please sign in to comment.