fix: 自动战斗保全作业地图存在性判断

This commit is contained in:
status102
2025-02-24 22:20:55 +08:00
parent bad45b428c
commit 82bafb223a

View File

@@ -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);
}