Skip to content

Commit

Permalink
[Filters\EquipmentSet] Fix Any Set
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed May 27, 2020
1 parent 2d6c924 commit 96a77c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/filters/EquipmentSet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 96a77c1

Please sign in to comment.