Skip to content

Commit

Permalink
[BUGFIX] Catch Pokemon while walking to fort (PokemonGoF#979)
Browse files Browse the repository at this point in the history
Resolves: PokemonGoF#821
  • Loading branch information
binarydepartment authored and MFizz committed Jul 29, 2016
1 parent 8ba6bdd commit 3329930
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemongo_bot/cell_workers/move_to_fort_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def work(self):
while distance(i2f(self.api._position_lat), i2f(self.api._position_lng), lat, lng) > 10:
if step_walker.step():
break
else:
self.bot.process_cells(work_on_forts=False)

else:
self.api.set_position(*position)
Expand Down

0 comments on commit 3329930

Please sign in to comment.