-
-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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.
hsahovic
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working