Skip to content

Commit

Permalink
Fix #1528: Use InGame for character filters instead of Unobtainable
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUnicke committed Dec 6, 2023
1 parent 4cccff0 commit dd86a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modules/Filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ local function FilterInGame(item) -- ItemIsInGame
return not item.u or item.u > 2;
end
api.Filters.InGame = FilterInGame;
-- manually track InGame in CurrentCharacterFilters
RawCharacterFilters.InGame = api.Filters.InGame

-- Unobtainable -- FilterItemClass_UnobtainableItem
DefineToggleFilter("Unobtainable", AccountFilters,
function(item)
return not item.u or SettingsUnobtainable[item.u];
end);
-- manually track Unobtainable in CurrentCharacterFilters
RawCharacterFilters.Unobtainable = api.Filters.Unobtainable

-- PvP -- FilterItemClass_PvP
DefineToggleFilter("PvP", AccountFilters,
Expand Down

0 comments on commit dd86a3e

Please sign in to comment.