mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 自动战斗-自动编队-补充低信赖干员: 修正补充顺序,避免在极端情况下补充错误 (#6499)
This commit is contained in:
@@ -205,15 +205,21 @@ bool asst::BattleFormationTask::add_trust_operators()
|
||||
}
|
||||
else {
|
||||
failed_count = 0;
|
||||
for (const auto& trust_icon : matcher.get_result()) {
|
||||
std::vector<MatchRect> result = matcher.get_result();
|
||||
// 按先上下后左右排个序
|
||||
sort_by_vertical_(result);
|
||||
for (const auto& trust_icon : result) {
|
||||
// 匹配完干员左下角信赖表,将roi偏移到整个干员标
|
||||
ctrler()->click(trust_icon.rect.move({ 20, -225, 110, 250 }));
|
||||
if (--append_count <= 0 || need_exit()) {
|
||||
--append_count;
|
||||
if (append_count <= 0 || need_exit()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
swipe_page();
|
||||
if (!need_exit() && append_count > 0) {
|
||||
swipe_page();
|
||||
}
|
||||
}
|
||||
|
||||
return append_count == 0;
|
||||
|
||||
Reference in New Issue
Block a user