Skip to content

Commit 79152bc

Browse files
codybaldwinsolderzzc
authored andcommitted
[FIX] use_lucky_egg (#1774)
Changes to the tick_count caused the use_lucky_egg to not run. Since the tick_count is incremented prior to running the workers, the tick_count will be 1 on the first tick
1 parent 93dbca6 commit 79152bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pokemongo_bot/cell_workers/evolve_all_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _should_run(self):
5454
return False
5555

5656
# Evolve all is used - Don't run after the first tick or if the config flag is false
57-
if self.bot.tick_count is not 0 or not self.bot.config.use_lucky_egg:
57+
if self.bot.tick_count is not 1 or not self.bot.config.use_lucky_egg:
5858
return True
5959

6060
lucky_egg_count = self.bot.item_inventory_count(Item.ITEM_LUCKY_EGG.value)

0 commit comments

Comments
 (0)