1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:49:25 +08:00

Opt: interval shouldn't be used at loop break

This commit is contained in:
LmeSzinc
2023-09-28 16:20:12 +08:00
parent c14976951f
commit 14770e80b2

View File

@@ -44,7 +44,7 @@ class NewYearChallenge(MinigameRun):
if self.deal_popup():
continue
# entrance
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5), interval=3):
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5)):
break
# GOTO_CHOOSE_GAME -> choose game
if self.appear_then_click(GOTO_CHOOSE_GAME, offset=(5, 5), interval=3):
@@ -96,6 +96,7 @@ class NewYearChallenge(MinigameRun):
# game rule introduction
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5), interval=3):
if started:
self.interval_clear(NEW_YEAR_CHALLENGE_START)
break
else:
started = True