We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78bd1b9 + eab7037 commit 7a780ceCopy full SHA for 7a780ce
src/poke_env/environment/abstract_battle.py
@@ -246,6 +246,8 @@ def get_pokemon(
246
else:
247
self._opponent_team = dict(items)
248
team = self._team if is_mine or force_self_team else self._opponent_team
249
+ if identifier in team:
250
+ return team[identifier]
251
252
if self._team_size and len(team) >= self._team_size[player_role]:
253
raise ValueError(
0 commit comments