Skip to content

Commit

Permalink
Ignore pokemon again (#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmadsen authored Aug 22, 2016
1 parent 4411b93 commit f00e29b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ def work(self, response_dict=None):

# skip ignored pokemon
if not self._should_catch_pokemon(pokemon):
self.emit_event(
'pokemon_appeared',
formatted='Skip ignored {pokemon}! [CP {cp}] [Potential {iv}] [A/D/S {iv_display}]',
data={
'pokemon': pokemon.name,
'cp': pokemon.cp,
'iv': pokemon.iv,
'iv_display': pokemon.iv_display,
}
)
return WorkerResult.SUCCESS

is_vip = self._is_vip_pokemon(pokemon)
Expand Down

0 comments on commit f00e29b

Please sign in to comment.