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

BUG - Bot does not choose higher ball if no intermediate balls available #889

Closed
MikeDX opened this issue Jul 25, 2016 · 2 comments
Closed

Comments

@MikeDX
Copy link
Contributor

MikeDX commented Jul 25, 2016

Expected Behavior

Use UltraBall to catch a pokemon if normal ball < 0.35%

Actual Behavior

Use Pokeball and fail to catch

[2016-07-25 20:02:36] [#] Something rustles nearby!
[2016-07-25 20:02:37] [#] A Wild Dragonite appeared! [CP 2309] [Potential 0.64]
[2016-07-25 20:02:37] [#] IV [Stamina/Attack/Defense] = [8/15/6]
[2016-07-25 20:02:40] [x] Using Pokeball (chance: 3.06%)... (5 left!)
[2016-07-25 20:02:41] [-] Attempted to capture Dragonite- failed.. trying again!
[2016-07-25 20:02:43] [x] Using Pokeball (chance: 3.06%)... (4 left!)
[2016-07-25 20:02:43] [-] Attempted to capture Dragonite- failed.. trying again!
[2016-07-25 20:02:45] [x] Using Pokeball (chance: 3.06%)... (3 left!)
[2016-07-25 20:02:46] [-] Attempted to capture Dragonite- failed.. trying again!
[2016-07-25 20:02:47] [x] Using Pokeball (chance: 3.06%)... (2 left!)
[2016-07-25 20:02:47] [-] Attempted to capture Dragonite- failed.. trying again!
[2016-07-25 20:02:48] [x] Using Pokeball (chance: 3.06%)... (1 left!)
[2016-07-25 20:02:49] [-] Attempted to capture Dragonite- failed.. trying again!
[2016-07-25 20:02:51] [x] Using Pokeball (chance: 3.06%)... (0 left!)
[2016-07-25 20:02:51] [-] Attempted to capture Dragonite- failed.. trying again!
[2016-07-25 20:02:52] [x] Out of pokeballs, switching to farming mode...

(ignore the fact I ran out of balls, this is just to demonstrate. When the bug originally appeared I had ultraballs in stock and eventually the pokemon ran away)

Steps to Reproduce

Have at least one normal pokeball, find a pokemon with a < 35% catch rate and have no great balls but have some ultraballs

The logic for which ball to use is pretty bad, and doesnt take into consideration a user may not have any mid range balls to catch with.

earthchie pushed a commit to earthchie/PokemonGo-Bot that referenced this issue Jul 26, 2016
- Clean code
@earthchie earthchie mentioned this issue Jul 26, 2016
@earthchie
Copy link
Contributor

gonna fix in #908

solderzzc pushed a commit that referenced this issue Jul 26, 2016
* - Fix #889
- Clean code

* fix missing bracket

* fix missing bracket ...again

* fix missing colon
MFizz pushed a commit to MFizz/PokemonGo-Bot that referenced this issue Jul 29, 2016
* - Fix PokemonGoF#889
- Clean code

* fix missing bracket

* fix missing bracket ...again

* fix missing colon
@AdaptCharm
Copy link
Contributor

This issue has been resolved.

/closed

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

No branches or pull requests

3 participants