1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +08:00

Fix: Skip reverting config in hard, if drop screenshot disabled

This commit is contained in:
LmeSzinc
2020-12-04 22:37:18 +08:00
parent fd4b4bd098
commit 3399b64330

View File

@@ -72,7 +72,7 @@ class CampaignRun(Reward):
"""
if not self.campaign.config.ENABLE_SAVE_GET_ITEMS \
or not len(self.campaign.config.SCREEN_SHOT_SAVE_FOLDER_BASE.strip()):
return False
return []
# Create folder to save drop screenshot
folder = self.campaign.config.SCREEN_SHOT_SAVE_FOLDER_BASE + '/' + name
if not os.path.exists(folder):