fix: 关卡选择为剿灭时刷理智任务会尝试所有备选关卡 #6524

This commit is contained in:
uye
2023-09-26 19:52:46 +08:00
parent 4cf978598d
commit a62ff4b6e8

View File

@@ -1074,10 +1074,13 @@ namespace MaaWpfGui.ViewModels.UI
{
foreach (var stage in new[] { Stage1, Stage2, Stage3 })
{
if (IsStageOpen(stage) && (stage != curStage))
if (!IsStageOpen(stage) || (stage == curStage))
{
mainFightRet = Instances.AsstProxy.AsstAppendFight(stage, medicine, 0, int.MaxValue, string.Empty, 0);
continue;
}
mainFightRet = Instances.AsstProxy.AsstAppendFight(stage, medicine, 0, int.MaxValue, string.Empty, 0);
break;
}
}