Skip to content

Commit

Permalink
Enabled equipment sets for Wrath. (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan authored Sep 7, 2022
1 parent 2a37ed9 commit 848a28b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/DefaultFilters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function addon:SetupDefaultFilters()
}

-- [90] Parts of an equipment set
if addon.isRetail then
if addon.isRetail or addon.isWrath then
do
local setFilter = addon:RegisterFilter("ItemSets", 90, "ABEvent-1.0", "ABBucket-1.0")
setFilter.uiName = L['Gear manager item sets']
Expand Down Expand Up @@ -112,8 +112,13 @@ function addon:SetupDefaultFilters()
if itemIDs and locations then
for invId, location in pairs(locations) do
if location ~= 0 and location ~= 1 and itemIDs[invId] ~= 0 then
local player, bank, bags, voidstorage, slot, container = EquipmentManager_UnpackLocation(location)
local player, bank, bags, voidstorage, slot, container
local slotId
if addon.isWrath then
player, bank, bags, slot, container = EquipmentManager_UnpackLocation(location)
else
player, bank, bags, voidstorage, slot, container = EquipmentManager_UnpackLocation(location)
end
if bags and slot and container then
slotId = GetSlotId(container, slot)
elseif bank and slot then
Expand Down

0 comments on commit 848a28b

Please sign in to comment.