File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,16 @@ local BAGS = { [BACKPACK_CONTAINER] = BACKPACK_CONTAINER }
37
37
for i = 1 , NUM_BAG_SLOTS do BAGS [i ] = i end
38
38
39
39
local BANK = {}
40
+ local BANK_ONLY = {}
41
+ local REAGENTBANK_ONLY = {}
40
42
41
43
if addon .isRetail then
42
44
-- Base nank bags
43
- local BANK_ONLY = { [BANK_CONTAINER ] = BANK_CONTAINER }
45
+ BANK_ONLY = { [BANK_CONTAINER ] = BANK_CONTAINER }
44
46
for i = NUM_BAG_SLOTS + 1 , NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do BANK_ONLY [i ] = i end
45
47
46
48
--- Reagent bank bags
47
- local REAGENTBANK_ONLY = { [REAGENTBANK_CONTAINER ] = REAGENTBANK_CONTAINER }
49
+ REAGENTBANK_ONLY = { [REAGENTBANK_CONTAINER ] = REAGENTBANK_CONTAINER }
48
50
49
51
-- All bank bags
50
52
for _ , bags in ipairs { BANK_ONLY , REAGENTBANK_ONLY } do
Original file line number Diff line number Diff line change @@ -307,16 +307,25 @@ function addon:SetupDefaultFilters()
307
307
end
308
308
309
309
function itemCat :GetOptions ()
310
- local values = {
311
- [TRADE_GOODS ] = TRADE_GOODS ,
312
- [CONSUMMABLE ] = CONSUMMABLE ,
313
- [MISCELLANEOUS ] = MISCELLANEOUS ,
314
- [RECIPE ] = RECIPE ,
315
- }
310
+ local values = {}
316
311
if addon .isRetail then
317
- values [GEM ] = GEM
318
- values [GLYPH ] = GLYPH
312
+ values = {
313
+ [TRADE_GOODS ] = TRADE_GOODS ,
314
+ [CONSUMMABLE ] = CONSUMMABLE ,
315
+ [MISCELLANEOUS ] = MISCELLANEOUS ,
316
+ [GEM ] = GEM ,
317
+ [GLYPH ] = GLYPH ,
318
+ [RECIPE ] = RECIPE ,
319
+ }
320
+ else
321
+ values = {
322
+ [TRADE_GOODS ] = TRADE_GOODS ,
323
+ [CONSUMMABLE ] = CONSUMMABLE ,
324
+ [MISCELLANEOUS ] = MISCELLANEOUS ,
325
+ [RECIPE ] = RECIPE ,
326
+ }
319
327
end
328
+
320
329
return {
321
330
splitBySubclass = {
322
331
name = L [' Split by subcategories' ],
You can’t perform that action at this time.
0 commit comments