From 08cde71682caa2bcd2cee587c8e8d23fab442371 Mon Sep 17 00:00:00 2001 From: Justin Vu Date: Mon, 22 Aug 2016 12:41:09 +0700 Subject: [PATCH] Secure catch rate if pokemon is vip --- pokemongo_bot/cell_workers/pokemon_catch_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index d29bc5f801..aa060b46be 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -426,7 +426,7 @@ def _do_catch(self, pokemon, encounter_id, catch_rate_by_ball, is_vip=False): ) hit_pokemon = 1 - if random() >= self.catch_throw_parameters_hit_rate: + if random() >= self.catch_throw_parameters_hit_rate and not is_vip: hit_pokemon = 0 response_dict = self.api.catch_pokemon(