Skip to content

Commit

Permalink
revert this
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronangliss committed Feb 13, 2025
1 parent 3d48c04 commit 3edf6f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poke_env/environment/battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ def parse_request(self, request: Dict[str, Any]) -> None:
if not self.trapped and not self.reviving:
for pokemon in side["pokemon"]:
if pokemon:
pokemon = self.get_pokemon(pokemon["ident"])
pokemon = self._team[pokemon["ident"]]
if not pokemon.active and not pokemon.fainted:
self._available_switches.append(pokemon)

if not self.trapped and self.reviving:
for pokemon in side["pokemon"]:
if pokemon and pokemon.get("reviving", False):
pokemon = self.get_pokemon(pokemon["ident"])
pokemon = self._team[pokemon["ident"]]
if not pokemon.active:
self._available_switches.append(pokemon)

Expand Down

0 comments on commit 3edf6f9

Please sign in to comment.