diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index ef1015d08e..9aa1a8023d 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -293,7 +293,7 @@ def _do_catch(self, pokemon, encounter_id, catch_rate_by_ball, is_vip=False): best_ball = current_ball while best_ball < maximum_ball: best_ball += 1 - if catch_rate_by_ball[current_ball] < ideal_catch_rate_before_throw and items_stock[best_ball] > 0: + if catch_rate_by_ball[current_ball] < ideal_catch_rate_before_throw and self.inventory.count_for(best_ball) > 0: # if current ball chance to catch is under our ideal rate, and player has better ball - then use it current_ball = best_ball