Skip to content

poke_env max_pp is lower than PokemonShowdown #355

@quadraticmuffin

Description

@quadraticmuffin

Currently the value of Move.max_pp is being populated from data/genx_moves.json, but this file uses default PP values. This is a problem because Pokemon Showdown does not use the default PP; rather, it uses the highest possible PP. For example, the move Agility has 30 (max 48) PP; poke_env thinks it has 30, but Pokemon Showdown uses 48.

This leads to Move.current_pp sometimes returning a negative value, as Move.use() does not check whether the current_pp is 0 before subtracting from it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions