SwipeX / PokeMate

Automated PokemonGo Application
GNU General Public License v3.0
111 stars 45 forks source link

Fixes Catch Pokemon, Added additional debug messages to find potential issues #227

Closed SippieCup closed 8 years ago

SippieCup commented 8 years ago

Note API speed was modified in one comment and reverted in another.

FreakySt0rm commented 8 years ago

Can't wait for this to be commited :dancers:

gsisso commented 8 years ago

At catch pokemon why you use continue instead of break ?

                    for (Pokeball pb : Pokeball.values()) {
                        ball = itemBag().getItem(pb.getBallType());
                        if (ball != null && ball.getCount() > 0) {
                            pokeball = pb;
                            continue;
                        }
                    }

if we found a pokeball we should break the loop as it is not needed anymore.

SippieCup commented 8 years ago

Good catch, I changed it back and forth last night without thinking too much about it because i kept thinking that it was somehow breaking the keepalive loop.