1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-04 03:56:27 +08:00

Fix: reset swipe to top before searching

This commit is contained in:
xiaomcingn
2026-05-27 22:22:54 +08:00
committed by sui-feng-cb
parent 0ed763ed54
commit e232e453ee

View File

@@ -579,14 +579,11 @@ class IslandProjectRun(IslandUI):
if self.project_character_select(secondary_character, reset_swipe=True): if self.project_character_select(secondary_character, reset_swipe=True):
return True, secondary_character return True, secondary_character
# Fallback to manjuu directly since page is already at the bottom # Fallback to manjuu, reset swipe to top before searching
logger.info('Falling back to manjuu') logger.info('Falling back to manjuu')
self.device.screenshot() if self.project_character_select('manjuu', reset_swipe=True):
image = self.image_crop((0, 0, 1280, 720), copy=False)
if self.match_and_select_character('manjuu', image):
return True, 'manjuu' return True, 'manjuu'
else:
logger.warning('Manjuu not found')
return False, None return False, None
@staticmethod @staticmethod