mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Fix: Handle AUTO_SEARCH_REWARD when switching fleet lock
This commit is contained in:
@@ -96,6 +96,16 @@ class Switch:
|
||||
logger.warning(f'Switch {self.name} received an invalid status {status}')
|
||||
raise ScriptError(f'Switch {self.name} received an invalid status {status}')
|
||||
|
||||
def handle_additional(self, main):
|
||||
"""
|
||||
Args:
|
||||
main (ModuleBase):
|
||||
|
||||
Returns:
|
||||
bool: If handled
|
||||
"""
|
||||
return False
|
||||
|
||||
def set(self, status, main, skip_first_screenshot=True):
|
||||
"""
|
||||
Args:
|
||||
@@ -122,6 +132,10 @@ class Switch:
|
||||
current = self.get(main=main)
|
||||
logger.attr(self.name, current)
|
||||
|
||||
# Handle additional popups
|
||||
if self.handle_additional(main=main):
|
||||
continue
|
||||
|
||||
# End
|
||||
if current == status:
|
||||
return changed
|
||||
|
||||
Reference in New Issue
Block a user