Skip to content

Commit

Permalink
stop-wasting-time-with-pokemons-when-there-is-no-ball-left (#4454)
Browse files Browse the repository at this point in the history
  • Loading branch information
leanhdaovn authored and mjmadsen committed Aug 21, 2016
1 parent 2c10d89 commit da0b4c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def work(self, response_dict=None):
if inventory.items().get(ITEM_GREATBALL).count < 1:
if inventory.items().get(ITEM_ULTRABALL).count < 1:
return WorkerResult.SUCCESS
elif (not is_vip) and inventory.items().get(ITEM_ULTRABALL).count < self.min_ultraball_to_keep:
return WorkerResult.SUCCESS

# log encounter
self.emit_event(
Expand Down

0 comments on commit da0b4c3

Please sign in to comment.