mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:27:33 +08:00
Fix: handle_story_entrance should return False as not in_stage
This commit is contained in:
parent
f6da422706
commit
91f1036c13
@ -2,6 +2,7 @@ from module.base.timer import Timer
|
||||
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
||||
from module.combat.assets import GET_ITEMS_1
|
||||
from module.exception import CampaignNameError
|
||||
from module.logger import logger
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
@ -31,6 +32,7 @@ class CampaignBase(CampaignBase_):
|
||||
return True
|
||||
|
||||
def ensure_no_stage_entrance(self, skip_first_screenshot=True):
|
||||
logger.info('ensure_no_stage_entrance')
|
||||
while 1:
|
||||
if skip_first_screenshot:
|
||||
skip_first_screenshot = False
|
||||
@ -59,7 +61,7 @@ class CampaignBase(CampaignBase_):
|
||||
# Click after stage ended
|
||||
if self.is_in_stage_page():
|
||||
if self.handle_story_entrance():
|
||||
return True
|
||||
return False
|
||||
return super().handle_in_stage()
|
||||
|
||||
def handle_get_chapter_additional(self):
|
||||
|
Loading…
Reference in New Issue
Block a user