Skip to content

Commit

Permalink
moveIsNotUseless: disambiguate OR operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezzo64 committed Oct 16, 2024
1 parent a7c1cd6 commit f6cf4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/src/battle-dex-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ class BattleMoveSearch extends BattleTypedSearch<'move'> {
case 'wildcharge':
return !moves.includes('supercellslam');
case 'zapcannon':
return abilityid === 'noguard' || dex.gen < 4 && !moves.includes('thunderwave');
return abilityid === 'noguard' || (dex.gen < 4 && !moves.includes('thunderwave'));
}

if (this.formatType === 'doubles' && BattleMoveSearch.GOOD_DOUBLES_MOVES.includes(id)) {
Expand Down

0 comments on commit f6cf4ab

Please sign in to comment.