修改check触发检查的时机 (#2904)

This commit is contained in:
mno
2026-03-12 10:01:55 +08:00
committed by GitHub
parent 1e9b72e547
commit 54301e1e02

View File

@@ -419,13 +419,6 @@ public class AutoFightTask : ISoloTask
}
#endregion
#region check动作触发战斗结束检测
if (command.Method == Method.Check)
{
fightEndFlag = await CheckFightFinish(delayTime, detectDelayTime);
}
#endregion
command.Execute(combatScenes, lastCommand);
//统计战斗人次
if (i == combatCommands.Count - 1 || command.Name != combatCommands[i + 1].Name)
@@ -433,6 +426,13 @@ public class AutoFightTask : ISoloTask
countFight++;
}
#region check动作触发战斗结束检测
if (command.Method == Method.Check)
{
fightEndFlag = await CheckFightFinish(delayTime, detectDelayTime);
}
#endregion
lastFightName = command.Name;
if (!fightEndFlag && _taskParam is { FightFinishDetectEnabled: true })
{