mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-18 19:28:35 -05:00
BasicEffect always had a `status` property to support the pattern of testing it to see if it's a move that sets status directly. This is just a situation that TypeScript is bad at. Another possibility would be to set `status: undefined` on PureEffect, Ability, Item, and Species, but I think that's also ugly. Casting to Move is probably the best approach, so that's what we do now. |
||
|---|---|---|
| .. | ||
| abilities.ts | ||
| items.ts | ||
| moves.ts | ||
| pokedex.ts | ||
| random-teams.ts | ||
| scripts.ts | ||
| statuses.ts | ||