Skip to content

Commit 5072993

Browse files
larry-the-table-guyscheibo
authored andcommitted
Gate and document pursuit as a trapping move in tag
1 parent 6dc35b1 commit 5072993

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

stats/CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ quirks that have been corrected by `@pkmn/stats` unless "legacy" mode is opted i
5151
'setup' moves, 'dragon' Pokémon, battle formes etc which include several notable absences
5252
(Darmanitan-Zen and Meloetta-Piroutte are not considered formes, Kommo-o is not considered a
5353
'dragon') and have not been updated for Generation 8. `@pkmn/stats` instead computes these lists
54-
programmatically from the data files to ensure they are comphrensive and up to date.
54+
programmatically from the data files to ensure they are comprehensive and up to date.
55+
- Smogon-Usage-Stats groups `pursuit` with other trapping moves when computing `stalliness`, but
56+
excludes it when tagging Pokémon as trappers. `@pkmn/stats` includes it.
5557
- `Nidoran-M` is displayed in reports as `NidoranM`, `Nidroran-F` as `NidoranF` and `Flabébé` as
5658
`Flabebe` in Smogon-Usage-Stats whereas these **names display** correctly in `@pkmn/stats`.
5759
- The **'`empty'`** internal placeholder value is filtered out of reports and stats update logic by

stats/src/classifier.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ function tag(
279279
style.voltturn++;
280280
}
281281
if ((style.trappers < 3 && TRAPPING_ABILITIES.has(pokemon.ability)) ||
282-
pokemon.moves.some((m: ID) => TRAPPING_MOVES.has(m))) {
282+
(legacy ? pokemon.moves.some((m: ID) => ['block', 'meanlook', 'spiderweb'].includes(m))
283+
: pokemon.moves.some((m: ID) => TRAPPING_MOVES.has(m)))) {
283284
style.trappers++;
284285
}
285286
if (style.dragons < 2 && legacy ? DRAGONS.has(pokemon.species)

0 commit comments

Comments
 (0)