Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hsahovic committed Jun 18, 2023
1 parent 1dff9c8 commit ac316ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/poke_env/environment/abstract_battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,13 @@ def _parse_message(self, split_message: List[str]) -> None:

if override_move:
# Both copy cat and sleep talk, the two moves that can trigger this branch, have two `move` messages.
# We're setting use=False in the one with the override in order to prevent two pps from being used
# We're setting use=False in the one with the override in order to prevent two pps from being used
# incorrectly.
self.get_pokemon(pokemon)._moved(override_move, failed=failed, use=False)
if override_move is None or reveal_other_move:
self.get_pokemon(pokemon)._moved(
move, failed=failed, use=False
override_move, failed=failed, use=False
)
if override_move is None or reveal_other_move:
self.get_pokemon(pokemon)._moved(move, failed=failed, use=False)
elif split_message[1] == "cant":
pokemon, _ = split_message[2:4]
self.get_pokemon(pokemon)._cant_move()
Expand Down

0 comments on commit ac316ff

Please sign in to comment.