File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from module .os .camera import OSCamera
2121from module .os .map_base import OSCampaignMap
2222from module .os_ash .ash import OSAsh
23- from module .os_combat .combat import Combat
23+ from module .os_combat .combat import Combat , BATTLE_PREPARATION , SIREN_PREPARATION
2424from module .os_handler .assets import AUTO_SEARCH_REWARD , CLICK_SAFE_AREA , IN_MAP , PORT_ENTER
2525from module .os_shop .assets import PORT_SUPPLY_CHECK
2626from module .ui .assets import BACK_ARROW
@@ -713,8 +713,13 @@ def boss_leave(self):
713713
714714 # Re-enter boss accidentally
715715 if pause_interval .reached ():
716- if self .combat_appear ():
717- logger .info (f'combat_appear -> { BACK_ARROW } ' )
716+ if self .appear (BATTLE_PREPARATION ):
717+ logger .info (f'{ BATTLE_PREPARATION } -> { BACK_ARROW } ' )
718+ self .device .click (BACK_ARROW )
719+ pause_interval .reset ()
720+ continue
721+ if self .appear (SIREN_PREPARATION , offset = (20 , 20 )):
722+ logger .info (f'{ SIREN_PREPARATION } -> { BACK_ARROW } ' )
718723 self .device .click (BACK_ARROW )
719724 pause_interval .reset ()
720725 continue
You can’t perform that action at this time.
0 commit comments