File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -218,15 +218,12 @@ def get_pokemon(
218
218
if identifier [3 ] != " " :
219
219
identifier = identifier [:2 ] + identifier [3 :]
220
220
221
- if identifier in self ._team :
222
- return self ._team [identifier ]
223
- elif identifier in self ._opponent_team :
224
- return self ._opponent_team [identifier ]
225
-
226
221
player_role = identifier [:2 ]
227
222
name = identifier [3 :].strip ()
228
223
is_mine = player_role == self ._player_role
229
224
team = self ._team if is_mine or force_self_team else self ._opponent_team
225
+ if identifier in team :
226
+ return team [identifier ]
230
227
231
228
# if the pokemon has a nickname, this ensures we recognize it
232
229
split_details = [
@@ -246,7 +243,6 @@ def get_pokemon(
246
243
else :
247
244
self ._opponent_team = dict (items )
248
245
team = self ._team if is_mine or force_self_team else self ._opponent_team
249
-
250
246
if identifier in team :
251
247
return team [identifier ]
252
248
You can’t perform that action at this time.
0 commit comments