Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EncounterResponseOuterClass.EncounterResponse encounterResponse = map.encounterPokemon(pokemon);
- System.out.println(encounterResponse);
- if (encounterResponse.getStatus() == EncounterResponseOuterClass.EncounterResponse.Status.ENCOUNTER_SUCCESS) {
- CatchPokemonResponseOuterClass.CatchPokemonResponse result = map.catchPokemon(pokemon, 1.0D, 1.95D + Math.random() * 0.05D, 0.85D + Math.random() * 0.15D, Pokeball.POKEBALL.ordinal());
- safeSleep(5000);
- System.out.println(result.getStatus());//here i get CATCH_ERROR
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement