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