mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 15:19:26 +08:00
fix: check tasks when disable event
This commit is contained in:
@@ -217,8 +217,9 @@ class CampaignEvent(CampaignEvent):
|
||||
def _disable_tasks(self, tasks):
|
||||
super()._disable_tasks(tasks)
|
||||
|
||||
if tasks in GEMS_FARMINGS:
|
||||
full_config = self.config.full_config
|
||||
if full_config.Hook_HookGeneral_Enable:
|
||||
full_config.GemsFarming_Campaign_Name = "15-2"
|
||||
full_config.WarArchives_Campaign_Event = "campaign_main"
|
||||
for task in tasks:
|
||||
if task in GEMS_FARMINGS:
|
||||
full_config = self.config.full_config
|
||||
if full_config.Hook_HookGeneral_Enable:
|
||||
full_config.GemsFarming_Campaign_Name = "15-2"
|
||||
full_config.WarArchives_Campaign_Event = "campaign_main"
|
||||
|
||||
Reference in New Issue
Block a user