MerlionRock / RealAndroidBot

MIT License
116 stars 47 forks source link

Encounter moved right... when the encounter did not move right. #51

Closed miqueet closed 3 years ago

miqueet commented 3 years ago

Ever since updating to 1.5.1 I have noticed that I have seen the "encounter moved right" and it throws the ball to the right when the pokemon did not move to the right. It did eventually catch it this time, but I have seen in the past where it just wastes pokeballs.

10:11:48.274 INFO    | {'type': None, 'status': None, 'dex': 187, 'name': 'Hoppip', 'form': '???', 'shiny': False, 'iv': 84, 'atk_iv': 12, 'def_iv': 15, 'sta_iv': 11, 'cp': 12, 'level': 13, 'gender': '?', 'pvp_info': {'GL': {'dex': 188, 'name': 'Skiploom', 'rating': 94.29, 'cp': 1058, 'level': '50'}, 'UL': {'dex': 189, 'name': 'Skiploom', 'rating': 95.96, 'cp': 1789, 'level': '50'}}, 'screen_x': 0, 'screen_y': 0, 'latitude': 0, 'longitude': 0}
10:11:48.782 INFO    | Action: catch pokemon
10:11:48.783 INFO    | Current trial #1
10:11:49.123 INFO    | Action: feed berry
10:11:52.366 WARNING | No selectable berry.
10:11:52.368 INFO    | Action: select poke ball
10:11:52.368 INFO    | Skipped selecting ball for Hoppip (IV84 | CP12 | LVL13).
10:11:53.318 INFO    | Encounter moved right
10:11:53.318 INFO    | Action: throw pokeball
10:11:55.956 INFO    | Missed hitting...
10:11:55.956 INFO    | Current trial #2
10:11:57.810 INFO    | Encounter moved right
10:11:57.810 INFO    | Action: throw pokeball
10:12:00.476 INFO    | Missed hitting...
10:12:00.478 INFO    | Current trial #3
10:12:02.522 INFO    | Action: throw pokeball
10:12:05.130 INFO    | Hoppip (IV84 | CP12 | LVL13) was caught.
10:12:06.144 INFO    | Keep Hoppip (IV84 | CP12 | LVL13).
10:12:18.454 INFO    | Searching for pokestop to spin...

@MerlionRock, I can assist with this if given access to the code.

MerlionRock commented 3 years ago

This was added to detect pokemon that moves. While it isn't 100% perfect, it's better than wasting 9 balls on Pokemon that move left and right all the time.

Alternatively, latest version of PGSharp now support 100% hit. And therefore this won't be an issue anymore.