Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_close_cells incorrectly receives target position instead of current one #1015

Conversation

alvarogzp
Copy link
Contributor

The call to SpiralNavigator.take_step() is returning the next target position, and take_step in PokemonGoBot is using it to call find_close_cells.

Instead, find_close_cells should be called with self.position, that is, the current position.

@solderzzc
Copy link
Contributor

Finally, knew the reason of that position[2] exception.

@solderzzc solderzzc merged commit 7e10307 into PokemonGoF:dev Jul 26, 2016
MFizz pushed a commit to MFizz/PokemonGo-Bot that referenced this pull request Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants