Skip to content

Unable to deal with accuracy changes #599

Description

@BaiqingL

It seems like the library is somehow unable to deal with accuracy changes, the exact error is shown below:

  File "/home/a/miniforge3/envs/ml/lib/python3.12/site-packages/poke_env/environment/abstract_battle.py", line 571, in parse_message
    self.get_pokemon(pokemon).boost(stat, int(amount))
  File "/home/a/miniforge3/envs/ml/lib/python3.12/site-packages/poke_env/environment/pokemon.py", line 144, in boost
    self._boosts[stat] += amount
    ~~~~~~~~~~~~^^^^^^
KeyError: 'accuracy'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions