Skip to content

Commit 7e3d2ea

Browse files
Merge branch 'doubles-env' of github.com:cameronangliss/poke-env into doubles-env
2 parents 7b1777a + 0480aea commit 7e3d2ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/poke_env/player/player.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ async def _handle_battle_message(self, split_messages: List[List[str]]):
332332
"Pokémon"
333333
):
334334
await self._handle_battle_request(battle, maybe_default_order=True)
335+
elif split_message[2].startswith(
336+
"[Invalid choice] Can't switch: You sent more switches than "
337+
"Pokémon that need to switch"
338+
):
339+
await self._handle_battle_request(battle, maybe_default_order=True)
335340
elif split_message[2].startswith(
336341
"[Invalid choice] Can't move: Invalid target for"
337342
):

0 commit comments

Comments
 (0)