diff --git a/resource/tasks/Copilot/formation.json b/resource/tasks/Copilot/formation.json index 4a233af62c..e4f48be161 100644 --- a/resource/tasks/Copilot/formation.json +++ b/resource/tasks/Copilot/formation.json @@ -30,7 +30,7 @@ ], "templThreshold": 0.75, "rectMove_Doc": "识别后 move 给 click 用", - "rectMove": [-5, 0, 360, 355] + "rectMove": [-5, 0, 350, 100] }, "BattleQuickFormationSkillLevel-OCR": { "baseTask": "NumberOcrReplace", @@ -40,7 +40,7 @@ "BattleQuickFormationSkillLevel-Base": { "roi_Doc": "用于裁切出技能区域的 rect", "roi": [0, 365, 360, 355], - "rectMove_Doc": "move for SkillLevel-Check and SkillLevel-OCR", + "rectMove_Doc": "从template移动到 SkillLevel-Check and SkillLevel-OCR 的 roi 区域", "rectMove": [-54, -68, 25, 25] }, "BattleQuickFormationSkillLevel-Swipe": { diff --git a/src/MaaCore/Ui/BattleQuickFormation.cpp b/src/MaaCore/Ui/BattleQuickFormation.cpp index a8012d8b3d..eb26f1a2a0 100644 --- a/src/MaaCore/Ui/BattleQuickFormation.cpp +++ b/src/MaaCore/Ui/BattleQuickFormation.cpp @@ -148,7 +148,7 @@ std::optional if (result) { // 拼接图片中的技能等级icon坐标转换回全图的icon坐标 Rect rect { result->first.x, - result->first.y + current_y - base_task->roi.y, + result->first.y + base_task->roi.y - last_y, result->first.width, result->first.height }; @@ -164,7 +164,7 @@ std::optional if (result) { // 拼接图片中的技能等级icon坐标转换回全图的icon坐标 Rect rect { result->first.x, - result->first.y + last_y - base_task->roi.y, + result->first.y + base_task->roi.y - last_y, result->first.width, result->first.height };