feat: 在战斗列表中将教学关取消自动编队

This commit is contained in:
Lancarus
2023-10-06 18:44:49 +08:00
parent dd606d4599
commit d41abee36f

View File

@@ -92,7 +92,8 @@ bool asst::CopilotTask::set_params(const json::value& params)
return false;
}
bool with_formation = params.get("formation", false);
// 关卡名含有"tr"的为教学关,不需要编队
bool with_formation = (m_stage_name.find("tr") == std::string::npos) && params.get("formation", false);
m_formation_task_ptr->set_enable(with_formation);
// 自动补信赖