From cd10e971724dd0a5ebdcb8af08949a533ae6499e Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Thu, 9 Sep 2021 23:03:15 +0800 Subject: [PATCH] fix: should wait template in paddock scene --- auto_derby/scenes/paddock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_derby/scenes/paddock.py b/auto_derby/scenes/paddock.py index b6ae9cb0..8a8e5794 100644 --- a/auto_derby/scenes/paddock.py +++ b/auto_derby/scenes/paddock.py @@ -28,7 +28,7 @@ def choose_runing_style(self, style: RuningStyle): RuningStyle.MIDDLE: rp.vector2((160, 500), 466), RuningStyle.LAST: rp.vector2((60, 500), 466), }[style] - action.tap_image(templates.RACE_RUNNING_STYLE_CHANGE_BUTTON) + action.wait_tap_image(templates.RACE_RUNNING_STYLE_CHANGE_BUTTON) _, pos = action.wait_image(templates.RACE_CONFIRM_BUTTON) time.sleep(0.5) action.tap(button_pos)