Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
feat(farmer): imp _on_field_objects_gather
Browse files Browse the repository at this point in the history
Signed-off-by: hldh214 <[email protected]>
  • Loading branch information
hldh214 committed Aug 21, 2023
1 parent c2c89dc commit e3defd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lokbot/farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ def _on_field_objects_gather(self, each_obj):
return

self._start_march(to_loc, march_troops, MARCH_TYPE_GATHER, self.available_dragos[0]['_id'])
return

self._start_march(to_loc, march_troops, MARCH_TYPE_GATHER)

Expand Down Expand Up @@ -793,7 +794,7 @@ def on_field_objects(data):
except OtherException as error_code:
if str(error_code) in (
'full_task', 'not_enough_troop', 'insufficient_actionpoint', 'not_open_gate',
'no_drago_action_point'
'no_drago_action_point', 'no_drago'
):
logger.warning(f'on_field_objects: {error_code}, skip')
self.field_object_processed = True
Expand Down

0 comments on commit e3defd9

Please sign in to comment.