From 3e1dc1b76f3ae5e134a17a3a974f865494d558d3 Mon Sep 17 00:00:00 2001 From: Eevee Date: Tue, 9 Aug 2016 22:29:02 +0900 Subject: [PATCH] Fix unexpected egg incubation retry (#3276) incubator['used'] flag is set but not used in IncubateEggs._apply_incubators --- pokemongo_bot/cell_workers/incubate_eggs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pokemongo_bot/cell_workers/incubate_eggs.py b/pokemongo_bot/cell_workers/incubate_eggs.py index 5761090ea5..805129435b 100644 --- a/pokemongo_bot/cell_workers/incubate_eggs.py +++ b/pokemongo_bot/cell_workers/incubate_eggs.py @@ -49,6 +49,8 @@ def work(self): def _apply_incubators(self): for incubator in self.ready_incubators: + if incubator.get('used', False): + continue for egg in self.eggs: if egg["used"] or egg["km"] == -1: continue