mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 23:47:02 +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 '
|
||||
'raid tickets to do EX mode')
|
||||
if self.config.task.command == 'Raid':
|
||||
self.config.StopCondition_RunCount = 0
|
||||
self.config.Scheduler_Enable = False
|
||||
with self.config.multi_set():
|
||||
self.config.StopCondition_RunCount = 0
|
||||
self.config.Scheduler_Enable = False
|
||||
break
|
||||
|
||||
# Run
|
||||
@@ -124,6 +125,6 @@ class RaidRun(Raid, CampaignEvent):
|
||||
# End
|
||||
if self.triggered_stop_condition():
|
||||
break
|
||||
## Scheduler
|
||||
# Scheduler
|
||||
if self.config.task_switched():
|
||||
self.config.task_stop()
|
||||
|
||||
Reference in New Issue
Block a user