From a62ff4b6e84e705eaae58e5b5d357f18fbfb0d5f Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:52:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E5=8D=A1=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=B8=BA=E5=89=BF=E7=81=AD=E6=97=B6=E5=88=B7=E7=90=86=E6=99=BA?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=BC=9A=E5=B0=9D=E8=AF=95=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=A4=87=E9=80=89=E5=85=B3=E5=8D=A1=20#6524?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs b/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs index 9c7761f493..a6b8c1adab 100644 --- a/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/TaskQueueViewModel.cs @@ -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; } }