Skip to content

Commit

Permalink
Make race uniques not show up as obtainable (#5656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored Feb 18, 2023
1 parent 061c238 commit c0792e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/ItemDBControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function ItemDBClass:DoesItemMatchFilters(item)
end
if self.dbType == "UNIQUE" and self.controls.obtainable.selIndex ~= 2 then
local source = item.source or ""
local obtainable = not (source == "No longer obtainable")
local obtainable = not (source == "No longer obtainable" or (item.league and item.league == "Race Events"))
if (self.controls.obtainable.selIndex == 1 and not obtainable) or (self.controls.obtainable.selIndex == 3 and obtainable) then
return false
elseif (self.controls.obtainable.selIndex == 4 and not (source == "Vendor Recipe")) then
Expand Down

0 comments on commit c0792e1

Please sign in to comment.