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

Fix: Detection on unfinished OS daily

This commit is contained in:
LmeSzinc
2021-06-20 19:44:03 +08:00
parent e6a894ab8e
commit 8951f0c136

View File

@@ -139,8 +139,7 @@ class MissionHandler(GlobeOperation, ZoneManager):
"""
self.os_mission_enter()
if not self.appear(MISSION_CHECKOUT, offset=(20, 20)) \
and MISSION_CHECKOUT.match_appear_on(self.device.image):
if not (self.appear(MISSION_CHECKOUT, offset=(20, 20)) and MISSION_CHECKOUT.match_appear_on(self.device.image)):
# If not having enough items to claim a mission,
# there will still be MISSION_CHECKOUT, but button is transparent.
# So here needs to use both template matching and color detection.