Check regulation legality (Pokémon Champions)
check_legalityCheck if a Pokémon, moves, or held items are legal in a Pokémon Champions regulation. Uses offline regulation data; missing files trigger clear errors.
Instructions
Check whether a Pokémon — and optionally specific moves and/or held items — is legal in a given Pokémon Champions regulation (e.g. "m-b"). Reads purely from local regulation JSON (fully offline). If the regulation file is missing, returns an error telling you to run the scraper. If the regulation has no per-move or per-item legality data, that is stated explicitly rather than guessed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Optional list of held-item names to check for legality, e.g. ["Life Orb"]. | |
| moves | No | Optional list of move names to check for legality. | |
| pokemon | Yes | Pokémon species name to check. | |
| regulation | Yes | Regulation id, e.g. "m-b". |