mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-14 01:31:10 +08:00
Fix: Detection on unfinished OS daily (#466)
This commit is contained in:
@@ -102,7 +102,10 @@ class MissionHandler(GlobeOperation, ZoneManager):
|
|||||||
|
|
||||||
self.os_mission_enter()
|
self.os_mission_enter()
|
||||||
|
|
||||||
if self.appear(MISSION_CHECKOUT, offset=(20, 20)):
|
# 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.
|
||||||
|
if MISSION_CHECKOUT.match_appear_on(self.device.image):
|
||||||
try:
|
try:
|
||||||
self.ui_click(MISSION_CHECKOUT, check_button=MISSION_MAP_CHECK,
|
self.ui_click(MISSION_CHECKOUT, check_button=MISSION_MAP_CHECK,
|
||||||
additional=handle_mission_at_current_zone, skip_first_screenshot=True)
|
additional=handle_mission_at_current_zone, skip_first_screenshot=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user