Skip to content

Commit

Permalink
Items ratings/isNonstandard
Browse files Browse the repository at this point in the history
Minor fix Node said to do
  • Loading branch information
EnPassant4264 committed Oct 25, 2023
1 parent 42f0c9f commit 28b2c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle-dex-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ class BattleItemSearch extends BattleTypedSearch<'item'> {
const id = row[1];
let item = this.dex.items.get(id);
if (!item.exists || item.isNonstandard) {
if (item.isNonstandard != "Past" || this.formatType != "natdex") {
if (item.isNonstandard !== "Past" || this.formatType !== 'natdex') {
results.splice(i, 1);
continue;
}
Expand Down

0 comments on commit 28b2c5b

Please sign in to comment.