diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index d18a0ee8c9..e8b5c12a4e 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -95,6 +95,9 @@ def get_meta_cell(self): cells = self.find_close_cells(*location) # Combine all cells into a single dict of the items we care about. + oldForts = [] + if (self.cell and "forts" in self.cell): + oldForts = self.cell['forts'] forts = [] wild_pokemons = [] catchable_pokemons = [] @@ -106,6 +109,10 @@ def get_meta_cell(self): if "catchable_pokemons" in cell and len(cell["catchable_pokemons"]): catchable_pokemons += cell["catchable_pokemons"] + if (len(forts) == 0): + forts = oldForts +# logger.log('using old forts list') + return { "forts": forts, "wild_pokemons": wild_pokemons,