mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: CampaignNameError in _sos_is_appear_at_chapter()
This commit is contained in:
parent
f099666539
commit
1f6948d121
@ -17,6 +17,9 @@ class CampaignBase(CampaignBase_):
|
||||
Returns:
|
||||
Button:
|
||||
"""
|
||||
if '-5' not in name:
|
||||
return super().campaign_get_entrance(name)
|
||||
|
||||
sim, point = TEMPLATE_STAGE_SOS.match_result(self.device.image)
|
||||
if sim < 0.85:
|
||||
raise CampaignNameError
|
||||
|
||||
@ -106,9 +106,7 @@ class CampaignSos(CampaignRun, CampaignBase):
|
||||
in: page_campaign
|
||||
out: page_campaign, may in different chapter.
|
||||
"""
|
||||
self.campaign_ensure_mode(mode='normal')
|
||||
self.campaign_ensure_chapter(chapter)
|
||||
self.device.sleep(STAGE_SHOWN_WAIT)
|
||||
self.ensure_campaign_ui(name=f'{chapter}-4', mode='normal')
|
||||
|
||||
confirm_timer = Timer(1.5, count=3).start()
|
||||
while 1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user