The move object
- class poke_env.battle.move.DynamaxMove(parent: Move)
Bases:
Move- BOOSTS_MAP = {PokemonType.BUG: {'spa': -1}, PokemonType.DARK: {'spd': -1}, PokemonType.DRAGON: {'atk': -1}, PokemonType.GHOST: {'def': -1}, PokemonType.NORMAL: {'spe': -1}}
- SELF_BOOSTS_MAP = {PokemonType.FIGHTING: {'atk': 1}, PokemonType.FLYING: {'spe': 1}, PokemonType.GROUND: {'spd': 1}, PokemonType.POISON: {'spa': 1}, PokemonType.STEEL: {'def': 1}}
- TERRAIN_MAP = {PokemonType.ELECTRIC: Field.ELECTRIC_TERRAIN, PokemonType.FAIRY: Field.MISTY_TERRAIN, PokemonType.GRASS: Field.GRASSY_TERRAIN, PokemonType.PSYCHIC: Field.PSYCHIC_TERRAIN}
- WEATHER_MAP = {PokemonType.FIRE: Weather.SUNNYDAY, PokemonType.ICE: Weather.HAIL, PokemonType.ROCK: Weather.SANDSTORM, PokemonType.WATER: Weather.RAINDANCE}
- property crit_ratio
- Returns:
The move’s crit ratio. If the move is guaranteed to crit, returns 6.
- Return type:
- property damage
- property defensive_category
- Returns:
Move’s defender category.
- Return type:
- property expected_hits
- Returns:
Expected number of hits, between 1 and 5. Equal to n_hits if n_hits is constant.
- Return type:
- property is_protect_counter
- Returns:
Wheter this move increments a mon’s protect counter.
- Return type:
- property n_hit
- Returns:
How many hits this move lands. Tuple of the form (min, max).
- Return type:
Tuple
- class poke_env.battle.move.Move(move_id: str, gen: int, raw_id: str | None = None, from_mimic: bool = False, from_transform: bool = False)
Bases:
object- property category: MoveCategory
- Returns:
The move category.
- Return type:
- property crit_ratio: int
- Returns:
The move’s crit ratio. If the move is guaranteed to crit, returns 6.
- Return type:
- property deduced_target: Target | None
- Returns:
Move deduced target, based on Move.target and showdown’s request messages.
- Return type:
Optional[Target]
- property defensive_category: MoveCategory
- Returns:
Move’s defender category.
- Return type:
- property dynamaxed
- Returns:
The dynamaxed version of the move.
- Return type:
- property entry: Dict[str, Any]
Should not be used directly.
- Returns:
The data entry corresponding to the move
- Return type:
Dict
- property expected_hits: float
- Returns:
Expected number of hits, between 1 and 5. Equal to n_hits if n_hits is constant.
- Return type:
- property flags: Set[str]
This property is not well defined, and may be missing some information. If you need more information on some flag, please open an issue in the project.
- Returns:
Flags associated with this move. These can come from the data or be custom.
- Return type:
Set[str]
- property ignore_defensive: bool
- Returns:
Whether the opponent’s stat boosts are ignored.
- Return type:
- property ignore_immunity: bool | Set[PokemonType]
- property is_protect_counter: bool
- Returns:
Wheter this move increments a mon’s protect counter.
- Return type:
- property n_hit: Tuple[int, int]
- Returns:
How many hits this move lands. Tuple of the form (min, max).
- Return type:
Tuple
- property request_target: Target | None
- Returns:
Target information sent by showdown in a request message, if any.
- Return type:
Optional[Target]
- property secondary: List[Dict[str, Any]]
- Returns:
Secondary effects. At this point, the precise content of this property is not too clear.
- Return type:
Optional[Dict]
- property self_destruct: str | None
- Returns:
Move’s self destruct consequences.
- Return type:
str | None
- property self_switch: str | bool
- Returns:
What kind of self swtich this move implies for the user.
- Return type:
str | None
- property side_condition: SideCondition | None
- Returns:
Side condition inflicted by the move.
- Return type:
SideCondition | None
- property sleep_usable: bool
- Returns:
Whether the move can be user by a sleeping pokemon.
- Return type:
- property slot_condition: str | None
- Returns:
Which slot condition is started by this move.
- Return type:
str | None
- property stalling_move: bool
- Returns:
Showdown classification of the move as a stalling move.
- Return type:
- property status: Status | None
- Returns:
The status inflicted by the move.
- Return type:
Optional[Status]
- property type: PokemonType
- Returns:
Move type.
- Return type:
- property use_target_offensive: bool
- Returns:
Whether the move uses the target’s offensive statistics.
- Return type:
- property volatile_status: Effect | None
- Returns:
Volatile status inflicted by the move.
- Return type:
Effect | None
- property weather: Weather | None
- Returns:
Weather started by the move.
- Return type:
Optional[Weather]
- class poke_env.battle.move.MoveSet(_base_moves: dict[str, Move], _mimic_move: Move | None = None, _transform_moves: MoveSet | None = None)
Bases:
objectContainer for a pokemon’s moves, including Mimic and Transform overrides.