Skip to content

Commit 61a5ee2

Browse files
committed
remove mirrored button from eye and megalomaniac search because it is useless
1 parent 6ede9c8 commit 61a5ee2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Classes/TradeQueryGenerator.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,9 +1192,12 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
11921192
options.special = { itemName = context.slotTbl.slotName }
11931193
end
11941194

1195-
controls.includeMirrored = new("CheckBoxControl", {"TOPRIGHT",lastItemAnchor,"BOTTOMRIGHT"}, {0, 5, 18}, "Mirrored items:", function(state) end)
1196-
controls.includeMirrored.state = (self.lastIncludeMirrored == nil or self.lastIncludeMirrored == true)
1197-
updateLastAnchor(controls.includeMirrored)
1195+
-- these unique items cannot be mirrored
1196+
if not context.slotTbl.unique then
1197+
controls.includeMirrored = new("CheckBoxControl", {"TOPRIGHT",lastItemAnchor,"BOTTOMRIGHT"}, {0, 5, 18}, "Mirrored items:", function(state) end)
1198+
controls.includeMirrored.state = (self.lastIncludeMirrored == nil or self.lastIncludeMirrored == true)
1199+
updateLastAnchor(controls.includeMirrored)
1200+
end
11981201

11991202
if not isJewelSlot and not isAbyssalJewelSlot and includeScourge then
12001203
controls.includeScourge = new("CheckBoxControl", {"TOPRIGHT",lastItemAnchor,"BOTTOMRIGHT"}, {0, 5, 18}, "Scourge Mods:", function(state) end)

0 commit comments

Comments
 (0)