Skip to content

Commit

Permalink
Old flags bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 committed Aug 21, 2023
1 parent c94cbb3 commit 2f816f7
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 @@ -1680,7 +1680,7 @@ class BattleMoveSearch extends BattleTypedSearch<'move'> {
if (move.type !== value) return false;
break;
case 'category':
if (value in ['Physical', 'Special', 'Status']) {
if (['Physical', 'Special', 'Status'].includes(value)) {
if (move.category !== value) return false;
}
else {
Expand Down

0 comments on commit 2f816f7

Please sign in to comment.