Skip to content

Commit

Permalink
Fix forgotten line
Browse files Browse the repository at this point in the history
  • Loading branch information
cmezh committed Aug 11, 2016
1 parent 5b6e4d3 commit a8edc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a8edc57

Please sign in to comment.