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

BadPokemon worker / Red Slashed Pokemon #6072

Merged
merged 1 commit into from
Jul 9, 2017

Conversation

davidakachaos
Copy link
Contributor

If you have any Pokemon that Niantic has marked as bad (red slashes) this will notify you. If you set the option, it will also transfer those Pokemon.
These Pokemon are unusable for Gym and can't be powered up. These need to be transfered off your account.

If you have any Pokemon that Niantic has marked as bad (red slashes) this will notify you. If you set the option, it will also transfer those Pokemon.
@Jcolomar Jcolomar merged commit 1b1f125 into PokemonGoF:dev Jul 9, 2017
@MerlionRock
Copy link
Contributor

I got the following when try to run the new changes:

Traceback (most recent call last):
File "pokecli.py", line 885, in
main()
File "pokecli.py", line 206, in main
bot.tick()
File "/Users/Thomas/PokemonGo-Bot/pokemongo_bot/init.py", line 830, in tick
if worker.work() == WorkerResult.RUNNING:
File "/Users/Thomas/PokemonGo-Bot/pokemongo_bot/cell_workers/bad_pokemon.py", line 25, in work
bad_pokemons = [p for p in inventory.pokemons().all() if p.is_bad]
AttributeError: 'Pokemon' object has no attribute 'is_bad'

@MerlionRock
Copy link
Contributor

Hmm.... I think you need to add
self.is_bad = data.get('is_bad', False)
into inventory.py right?

@davidakachaos
Copy link
Contributor Author

Oops, you're right. Will fix this asap

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.

3 participants