Skip to content

Commit

Permalink
fix(single-mode): wait aoharu countdown animation
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Oct 10, 2021
1 parent 464c9fb commit 9f12ff8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions auto_derby/scenes/single_mode/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,18 @@ def recognize_go_out_options(self, ctx: single_mode.Context) -> None:

def recognize(self, ctx: single_mode.Context):
action.reset_client_size()
ctx.update_by_command_scene(template.screenshot())
# wait aoharu countdown animation
if ctx.scenario == ctx.SCENARIO_AOHARU and ctx.date[1:] in (
(1, 2),
(4, 1),
(7, 2),
(10, 1),
):
time.sleep(3)
action.wait_image_stable(
templates.SINGLE_MODE_CHARACTER_DETAIL_BUTTON,
duration=3,
)
ctx.update_by_command_scene(template.screenshot())
self.recognize_commands(ctx)
if not ctx.fan_count:
self.recognize_class(ctx)
Expand Down

0 comments on commit 9f12ff8

Please sign in to comment.