feat: 自动战斗跳过“以下干员出战后将被禁用,是否继续?”对话框 #4917 #4694 #5351

This commit is contained in:
Hydrogina
2023-09-23 12:20:14 +08:00
parent 41d97832d5
commit ff842dd16c
3 changed files with 14 additions and 0 deletions

View File

@@ -43,6 +43,11 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, Assistant* inst)
m_copilot_list_notification_ptr = start_2_tp->register_plugin<CopilotListNotificationPlugin>();
m_subtasks.emplace_back(start_2_tp);
//跳过“以下干员出战后将被禁用,是否继续?”对话框
auto start_3_tp = std::make_shared<ProcessTask>(callback, inst, TaskType);
start_3_tp->set_tasks({ "SkipForbiddenOperConfirm", "Stop" }).set_ignore_error(false);
m_subtasks.emplace_back(start_3_tp);
m_subtasks.emplace_back(m_battle_task_ptr)->set_retry_times(0);
m_stop_task_ptr->set_enable(false);