Skip to content

Commit

Permalink
Fixed return for #4504 (#4527)
Browse files Browse the repository at this point in the history
* Fixed return

* Whitespace fix

* Whitespace fix

* Fixed whitespace

* Fixed whitespace
  • Loading branch information
mjmadsen authored Aug 22, 2016
1 parent 695ca70 commit 13d2b95
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions pokemongo_bot/cell_workers/move_to_map_pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,27 +430,23 @@ def _move_to_pokemon_througt_fort(self, fort, pokemon):
'poke_dist': (format_dist(pokemon['dist'], self.unit))
}


self.emit_event(
'moving_to_pokemon_throught_fort',
formatted="Moving towards {poke_name} - {poke_dist} through pokestop {fort_name} - {distance}",
data= pokemon_throught_fort_event_data
)
else:
self.emit_event(
'arrived_at_fort',
formatted='Arrived at fort.'
)

return walker_factory(self.walker,
self.bot,
lat,
lng
)


self.emit_event(
'arrived_at_fort',
formatted='Arrived at fort.'
return walker_factory(self.walker,
self.bot,
lat,
lng
)



def get_nearest_fort_on_the_way(self, pokemon):
forts = self.bot.get_forts(order_by_distance=True)

Expand Down

0 comments on commit 13d2b95

Please sign in to comment.