From 82bafb223a5acd3a68f852cd91c1eddee284ac44 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Mon, 24 Feb 2025 22:20:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E6=88=98=E6=96=97?= =?UTF-8?q?=E4=BF=9D=E5=85=A8=E4=BD=9C=E4=B8=9A=E5=9C=B0=E5=9B=BE=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E6=80=A7=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs index 834894d2c4..9b4d38e912 100644 --- a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs @@ -763,7 +763,8 @@ namespace MaaWpfGui.ViewModels.UI } // 不支持的关卡 - if (DataHelper.FindMap(copilot.StageName) is null) + var stages = copilot.Stages?.Select(copilot => DataHelper.FindMap(copilot.StageName)); + if (stages?.Any(i => i is null) is null or true) { AddLog(LocalizationHelper.GetString("UnsupportedStages") + $" {copilot.StageName}", UiLogColor.Error, showTime: false); }