Skip to content

Commit

Permalink
Add method to programmatically determine whether a Pokemon is a Drago…
Browse files Browse the repository at this point in the history
…n-type (#2)
  • Loading branch information
shrianshChari authored Aug 26, 2024
1 parent d63b96b commit 652db3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stats/src/classifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +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 && DRAGONS.has(pokemon.species)) {
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 652db3e

Please sign in to comment.