From d64fe1c8798bca28455f491b65d556a72e0d3c2a Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Mon, 19 Jan 2026 00:56:21 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E9=80=89=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E6=BB=91=E5=8A=A8=E7=9A=84=20postdelay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/tasks/Copilot/formation.json | 6 +++--- src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/resource/tasks/Copilot/formation.json b/resource/tasks/Copilot/formation.json index f4c77e2807..4a233af62c 100644 --- a/resource/tasks/Copilot/formation.json +++ b/resource/tasks/Copilot/formation.json @@ -48,12 +48,12 @@ "action": "Swipe", "specificRect": [15, 650, 10, 10], "rectMove": [15, 550, 10, 10], - "postDelay": 500 + "postDelay": 600 }, "BattleQuickFormationSkill-SwipeToTheUp": { "algorithm": "JustReturn", "action": "Swipe", - "postDelay": 100, + "postDelay": 600, "specificRect": [15, 400, 80, 10], "rectMove": [15, 700, 80, 20], "specialParams": [150, 0, 1, 1] @@ -61,7 +61,7 @@ "BattleQuickFormationSkill-SwipeToTheDown": { "algorithm": "JustReturn", "action": "Swipe", - "postDelay": 100, + "postDelay": 600, "specificRect": [15, 525, 80, 10], "rectMove": [15, 200, 80, 100], "specialParams": [150, 0, 1, 1] diff --git a/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp b/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp index 5c1cb4680d..22dfa5beb6 100644 --- a/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp +++ b/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp @@ -692,7 +692,6 @@ bool asst::BattleFormationTask::check_and_select_skill( } else { ProcessTask(*this, { "BattleQuickFormationSkill-SwipeToTheDown" }).run(); - sleep(swipe_task->post_delay); image = ctrler()->get_image(); roi_image = make_roi(image, make_rect(base_task->roi)); auto result = find_skill(roi_image, skill, true); @@ -705,7 +704,6 @@ bool asst::BattleFormationTask::check_and_select_skill( return true; } ProcessTask(*this, { "BattleQuickFormationSkill-SwipeToTheUp" }).run(); - sleep(swipe_task->post_delay); image = ctrler()->get_image(); // 一般不会走到这里, 翻回顶部走通用逻辑 roi_image = make_roi(image, make_rect(base_task->roi)); }