1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 11:07:20 +08:00

Fix: [JP] Handle mail empty (#4114)

This commit is contained in:
LmeSzinc
2024-08-23 02:34:40 +08:00
parent b8c89285c1
commit 7eadaa7d8a
4 changed files with 5 additions and 1 deletions

View File

@@ -64,10 +64,13 @@ class MailWhite(UI):
if self.appear(MAIL_BATCH_CLAIM, offset=(20, 20)):
logger.info('Mail entered')
return True
if self.appear(MAIL_WHITE_EMPTY, offset=(20, 20)):
logger.info('Mail empty')
return False
if not has_mail and self.appear(GOTO_MAIN_WHITE, offset=(20, 20)):
timeout.start()
if timeout.reached():
logger.info('Mail empty')
logger.info('Mail empty, wait GOTO_MAIN_WHITE timeout')
return False
# Click