1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-05-01 00:10:13 +08:00

Merge pull request #1584 from Horizon101011/gems_opt

Fix: STOP_IF_REACH_LV32 cannot work properly if using delay
This commit is contained in:
LmeSzinc
2022-08-31 21:15:45 +08:00
committed by GitHub

View File

@@ -331,12 +331,11 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
raise e
# End
success = True
if self._trigger_lv32 or self._trigger_emotion:
success = success and self.flagship_change()
self.flagship_change()
if self.config.GemsFarming_LowEmotionRetreat:
success = success and self.vanguard_change()
self.vanguard_change()
if is_limit and self.config.StopCondition_RunCount <= 0:
logger.hr('Triggered stop condition: Run count')
@@ -353,10 +352,6 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
if self.config.task_switched():
self.campaign.ensure_auto_search_exit()
self.config.task_stop()
# Delay
if not success:
self.campaign.ensure_auto_search_exit()
self.config.task_delay(minute=30)
continue
else: