From 84f7733cc5079ef9e86c6da6918eee9bdf6f9b4e Mon Sep 17 00:00:00 2001 From: Alvaro Gutierrez Perez Date: Tue, 26 Jul 2016 18:33:12 +0200 Subject: [PATCH] Call find_close_cells with current position instead of target one --- pokemongo_bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index 65e8e0ddbe..1c1fe04cf0 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -39,7 +39,7 @@ def start(self): def take_step(self): location = self.navigator.take_step() - cells = self.find_close_cells(*location[0:2]) + cells = self.find_close_cells(*self.position[0:2]) for cell in cells: self.work_on_cell(cell, location)