mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 01:29:23 +08:00
Opt: Wraps with multi_set()
This commit is contained in:
@@ -101,8 +101,9 @@ class RaidRun(Raid, CampaignEvent):
|
|||||||
logger.info('Triggered stop condition: Zero '
|
logger.info('Triggered stop condition: Zero '
|
||||||
'raid tickets to do EX mode')
|
'raid tickets to do EX mode')
|
||||||
if self.config.task.command == 'Raid':
|
if self.config.task.command == 'Raid':
|
||||||
self.config.StopCondition_RunCount = 0
|
with self.config.multi_set():
|
||||||
self.config.Scheduler_Enable = False
|
self.config.StopCondition_RunCount = 0
|
||||||
|
self.config.Scheduler_Enable = False
|
||||||
break
|
break
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
@@ -124,6 +125,6 @@ class RaidRun(Raid, CampaignEvent):
|
|||||||
# End
|
# End
|
||||||
if self.triggered_stop_condition():
|
if self.triggered_stop_condition():
|
||||||
break
|
break
|
||||||
## Scheduler
|
# Scheduler
|
||||||
if self.config.task_switched():
|
if self.config.task_switched():
|
||||||
self.config.task_stop()
|
self.config.task_stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user