Skip to content

Commit

Permalink
the MoveToFortWorker should always go to the nearest fort (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkraig authored and elicwhite committed Jul 29, 2016
1 parent b91ec50 commit bd5518f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/move_to_fort_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def work(self):
return WorkerResult.SUCCESS

def get_nearest_fort(self):
forts = self.bot.get_forts()
forts = self.bot.get_forts(order_by_distance=True)

# Remove stops that are still on timeout
forts = filter(lambda x: x["id"] not in self.fort_timeouts, forts)
Expand Down

0 comments on commit bd5518f

Please sign in to comment.