Skip to content

Commit

Permalink
Revert "Fix PokemonGoF#3411. Update inventory info before every catch…
Browse files Browse the repository at this point in the history
… try otherwise old values used"

This reverts commit f7678da.
  • Loading branch information
cmezh committed Aug 11, 2016
1 parent 6bf4496 commit d9bd39d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,10 @@ def _do_catch(self, pokemon, encounter_id, catch_rate_by_ball, is_vip=False):
maximum_ball = ITEM_ULTRABALL if is_vip else ITEM_GREATBALL
ideal_catch_rate_before_throw = 0.9 if is_vip else 0.35

while True:
berry_count = self.bot.item_inventory_count(berry_id)
items_stock = self.bot.current_inventory()

self.bot.latest_inventory = None
berry_count = self.bot.item_inventory_count(berry_id)
items_stock = self.bot.current_inventory()
while True:

# find lowest available ball
current_ball = ITEM_POKEBALL
Expand Down

0 comments on commit d9bd39d

Please sign in to comment.