Advertisement
stirante

Untitled

Jul 21st, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. EncounterResponseOuterClass.EncounterResponse encounterResponse = map.encounterPokemon(pokemon);
  2. System.out.println(encounterResponse);
  3. if (encounterResponse.getStatus() == EncounterResponseOuterClass.EncounterResponse.Status.ENCOUNTER_SUCCESS) {
  4. CatchPokemonResponseOuterClass.CatchPokemonResponse result = map.catchPokemon(pokemon, 1.0D, 1.95D + Math.random() * 0.05D, 0.85D + Math.random() * 0.15D, Pokeball.POKEBALL.ordinal());
  5. safeSleep(5000);
  6. System.out.println(result.getStatus());//here i get CATCH_ERROR
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement