mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 08:13:44 +08:00
Fix: Handle AUTO_SEARCH_REWARD in wait_until_walk_stable
This commit is contained in:
@@ -20,7 +20,7 @@ from module.os.camera import OSCamera
|
|||||||
from module.os.map_base import OSCampaignMap
|
from module.os.map_base import OSCampaignMap
|
||||||
from module.os_ash.ash import OSAsh
|
from module.os_ash.ash import OSAsh
|
||||||
from module.os_combat.combat import Combat
|
from module.os_combat.combat import Combat
|
||||||
from module.os_handler.assets import CLICK_SAFE_AREA, IN_MAP, PORT_ENTER, PORT_SUPPLY_CHECK
|
from module.os_handler.assets import AUTO_SEARCH_REWARD, CLICK_SAFE_AREA, IN_MAP, PORT_ENTER, PORT_SUPPLY_CHECK
|
||||||
|
|
||||||
FLEET_FILTER = Filter(regex=re.compile(r'fleet-?(\d)'), attr=('fleet',), preset=('callsubmarine',))
|
FLEET_FILTER = Filter(regex=re.compile(r'fleet-?(\d)'), attr=('fleet',), preset=('callsubmarine',))
|
||||||
|
|
||||||
@@ -341,6 +341,11 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
|||||||
result.add('akashi')
|
result.add('akashi')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# A game bug that AUTO_SEARCH_REWARD from the last cleared zone popups
|
||||||
|
if self.appear_then_click(AUTO_SEARCH_REWARD, offset=(50, 50), interval=3):
|
||||||
|
confirm_timer.reset()
|
||||||
|
continue
|
||||||
|
|
||||||
# Enemy searching
|
# Enemy searching
|
||||||
if not enemy_searching_appear and self.enemy_searching_appear():
|
if not enemy_searching_appear and self.enemy_searching_appear():
|
||||||
enemy_searching_appear = True
|
enemy_searching_appear = True
|
||||||
|
|||||||
Reference in New Issue
Block a user