Skip to content

Commit

Permalink
Only walk towards Pokemon when total of balls >= min_ball
Browse files Browse the repository at this point in the history
  • Loading branch information
novadev94 committed Aug 19, 2016
1 parent 56e5b1f commit c868a06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pokemongo_bot/cell_workers/move_to_map_pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ def work(self):
else:
return self.snipe(pokemon)

if pokeballs_quantity + superballs_quantity + ultraballs_quantity < self.min_ball:
return WorkerResult.SUCCESS

step_walker = self._move_to(pokemon)
if not step_walker.step():
return WorkerResult.RUNNING
Expand Down

0 comments on commit c868a06

Please sign in to comment.