Skip to content

Commit 99fdceb

Browse files
larry-the-table-guyscheibo
authored andcommitted
Use constants for trapping abilities and moves
Fixes typo in 'arentrap' and adds missing 'pursuit' element.
1 parent b64f0ab commit 99fdceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stats/src/classifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ function tag(
278278
) {
279279
style.voltturn++;
280280
}
281-
if ((style.trappers < 3 && ['magnetpull', 'arentrap', 'shadowtag'].includes(pokemon.ability)) ||
282-
pokemon.moves.some((m: ID) => ['block', 'meanlook', 'spiderweb'].includes(m))) {
281+
if ((style.trappers < 3 && TRAPPING_ABILITIES.has(pokemon.ability)) ||
282+
pokemon.moves.some((m: ID) => TRAPPING_MOVES.has(m))) {
283283
style.trappers++;
284284
}
285285
if (style.dragons < 2 && legacy ? DRAGONS.has(pokemon.species)

0 commit comments

Comments
 (0)