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)); }