1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 15:35:12 +00:00

perf(tc): improve status check stability

This commit is contained in:
YoursFunny 2023-11-22 22:04:50 +08:00
parent 256dc96598
commit 4582406ef2
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -54,7 +54,7 @@ class TacticalChallenge(TacticalChallengeUI):
return TCStatus.PREPARE
case TCStatus.PREPARE:
self.appear_then_click(PREPARE_CHALLENGE)
if not self.appear(PREPARE_CHALLENGE):
if self.appear(START_CHALLENGE):
return TCStatus.SKIP
case TCStatus.SKIP:
if not self.set_skip():
@ -62,7 +62,7 @@ class TacticalChallenge(TacticalChallengeUI):
return TCStatus.START
case TCStatus.START:
self.appear_then_click(START_CHALLENGE)
if not self.appear(START_CHALLENGE):
if self.appear(CHALLENGE_WIN) or self.appear(CHALLENGE_LOSE):
return TCStatus.RESULT
case TCStatus.RESULT:
if self.appear_then_click(CHALLENGE_WIN):