PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Razz Berry not used twice, catch rate not refreshing

Open iPression opened this issue 10 years ago • 5 comments

Expected Behavior

If catch rate low, use razz berry to increase. if catch failed, use razz berry again

Actual Behavior

if catch failed, catch rate is not refreshing to the normal value

[02:41:08] Catch Rate with normal Pokeball is low (33.48%). Throwing Razz Berry... (57 left!) [02:41:08] Catch Rate with normal Pokeball has increased to 50.22% [02:41:08] Using Pokeball (chance: 50.22%)... (96 left!) [02:41:09] [-] Attempted to capture Goldeen - failed.. trying again! [02:41:11] Using Pokeball (chance: 50.22%)... (95 left!) [02:41:11] Oh no! Goldeen vanished! :(

Steps to Reproduce

actual dev branch

Other Information

OS: Mac OS Git Commit: 6b8666d5c3ffc03c605e1f272d019a26f0f68726

iPression avatar Jul 28 '16 00:07 iPression

In the client, it's only possible to use the berry once. That leads me to assume using it twice with an API call won't make a difference..

glenncampioni avatar Jul 28 '16 01:07 glenncampioni

But after the catch attempt failed, I can use another berry in my second, third, nth attempt. the bot doesn't, and I believe the reason it's not, is the missing refreshing of the catch rate.

iPression avatar Jul 28 '16 01:07 iPression

I see. Well, the code doesnt recheck catch chance as you said, if it's not looked into tomorrow, I'll see what I can do.

glenncampioni avatar Jul 28 '16 01:07 glenncampioni

Second, weird behavior:

[03:28:06] A Wild Bulbasaur appeared! [CP 201] [Potential 0.29] [03:28:06] IV [Stamina/Attack/Defense] = [12/0/1] [03:28:10] Catch Rate with normal Pokeball is low (21.32%). Throwing Razz Berry... (51 left!) [03:28:10] Catch Rate with normal Pokeball has increased to 31.98% [03:28:10] Using Greatball (chance: 45.31%)... (43 left!) [03:28:11] [-] Attempted to capture Bulbasaur - failed.. trying again! [03:28:13] Catch Rate with normal Pokeball is low (31.98%). Throwing Razz Berry... (50 left!) [03:28:13] Catch Rate with normal Pokeball has increased to 47.97% [03:28:13] Using Pokeball (chance: 47.97%)... (99 left!) [03:28:14] [-] Attempted to capture Bulbasaur - failed.. trying again! [03:28:16] Catch Rate with normal Pokeball is low (47.97%). Throwing Razz Berry... (49 left!) [03:28:16] Catch Rate with normal Pokeball has increased to 71.95% [03:28:16] Using Pokeball (chance: 71.95%)... (98 left!) [03:28:17] Captured Bulbasaur! [CP 201] [12/0/1]

iPression avatar Jul 28 '16 01:07 iPression

Even when using a different ball.. I'll look at it after I get some sleep. =)

glenncampioni avatar Jul 28 '16 01:07 glenncampioni