fix: 手动输入关卡名时, 不移除过期关卡

This commit is contained in:
status102
2026-01-22 00:54:25 +08:00
parent 26e035dabe
commit 17a08252f1

View File

@@ -793,7 +793,7 @@ public class FightSettingsUserControlModel : TaskSettingsViewModel
{
current.StagePlan = listCurrent;
}
foreach (var task in ConfigFactory.CurrentConfig.TaskQueue.Where(i => i is FightTask).OfType<FightTask>())
foreach (var task in ConfigFactory.CurrentConfig.TaskQueue.Where(i => i is FightTask fight && !fight.IsStageManually).OfType<FightTask>())
{
var removeList = task.StagePlan.Where(i => !stageList.Any(p => p.Value == i)).ToList();
if (removeList.Count != 0)