-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pokemon will now be caught from lures (#1056)
* Pokemon will now be caught from lures * Pokemon will now be caught from lures - bugfix * Added a warning message in case the API is outdated * Remove warning message and move api call to new method
- Loading branch information
1 parent
014401d
commit 9c99cc0
Showing
2 changed files
with
86 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9c99cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting this error after updating:
[23:50:55] Something rustles nearby!
Traceback (most recent call last):
File "pokecli.py", line 246, in
main()
File "pokecli.py", line 237, in main
bot.take_step()
File "/home/mats/Pokemon/PokemonGo-Bot2/pokemongo_bot/init.py", line 46, in take_step
self.work_on_cell(cell, location)
File "/home/mats/Pokemon/PokemonGo-Bot2/pokemongo_bot/init.py", line 189, in work_on_cell
if self.catch_pokemon(pokemon) == PokemonCatchWorker.NO_POKEBALLS:
File "/home/mats/Pokemon/PokemonGo-Bot2/pokemongo_bot/init.py", line 337, in catch_pokemon
return_value = worker.work()
File "/home/mats/Pokemon/PokemonGo-Bot2/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 31, in work
response_dict = self.create_encounter_api_call()
File "/home/mats/Pokemon/PokemonGo-Bot2/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 400, in create_encounter_api_call
fort_id = self.pokemon['fort_id']
KeyError: 'fort_id'
�[0m
9c99cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use this commit yet please, the API is currently outdated. Someone is updating the code for the new version to work correctly.