From 96a77c1835ac9efe7bcc65d17cdc9b5722ae7c33 Mon Sep 17 00:00:00 2001 From: tbkizle Date: Wed, 27 May 2020 03:30:37 -0400 Subject: [PATCH] [Filters\EquipmentSet] Fix Any Set --- src/filters/EquipmentSet.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/filters/EquipmentSet.lua b/src/filters/EquipmentSet.lua index 74690b2..3d117d0 100644 --- a/src/filters/EquipmentSet.lua +++ b/src/filters/EquipmentSet.lua @@ -66,11 +66,6 @@ end -- Test for match local function Matches(bag, slot, rule) - -- Empty rule? - if not rule.sets then - return false - end - -- Item belongs to a set? local inset, setstring = GetContainerItemEquipmentSetInfo(bag, slot) if not inset then @@ -82,6 +77,11 @@ local function Matches(bag, slot, rule) return true end + -- Empty rule? + if not rule.sets then + return false + end + -- Item belongs to a set in rule.sets[]? local sets = { (","):split(setstring) } for _, v in ipairs(sets) do