Skip to content

Commit

Permalink
Clean up legacy check
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Aug 26, 2024
1 parent d3c9dd4 commit edb8cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats/src/classifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ function tag(gen: Generation, team: Array<PokemonSet<ID>>, stalliness: number, l
pokemon.moves.some((m: ID) => ['block', 'meanlook', 'spiderweb'].includes(m))) {
style.trappers++;
}
if (style.dragons < 2 && ((legacy && DRAGONS.has(pokemon.species)) ||
(!legacy && gen.species.get(pokemon.species)?.types.includes('Dragon')))) {
if (style.dragons < 2 && legacy ? DRAGONS.has(pokemon.species)
: gen.species.get(pokemon.species)?.types.includes('Dragon')) {
style.dragons++;
}
if ((style.clearance < 2 && pokemon.ability === 'magicbounce') || moves.has('rapidspin')) {
Expand Down

0 comments on commit edb8cff

Please sign in to comment.