mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 修复自动编队超过10人时不选人的问题
This commit is contained in:
@@ -6470,7 +6470,7 @@
|
||||
107,
|
||||
20
|
||||
],
|
||||
"postDelay": 100
|
||||
"postDelay": 200
|
||||
},
|
||||
"BattleQuickFormationSkill1": {
|
||||
"algorithm": "JustReturn",
|
||||
@@ -12562,4 +12562,4 @@
|
||||
],
|
||||
"postDelay": 2000
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,13 +184,14 @@ bool asst::BattleFormationTask::select_opers_in_cur_page(std::vector<OperGroup>&
|
||||
Task.get("BattleQuickFormationSkill3")->specific_rect,
|
||||
};
|
||||
|
||||
if (opers_result.empty() || m_last_oper_name == opers_result.back().text) {
|
||||
Log.info("last oper name is same as current, skip");
|
||||
return false;
|
||||
if (!opers_result.empty()) {
|
||||
if (m_last_oper_name == opers_result.back().text) {
|
||||
Log.info("last oper name is same as current, skip");
|
||||
return false;
|
||||
}
|
||||
m_last_oper_name = opers_result.back().text;
|
||||
}
|
||||
|
||||
m_last_oper_name = opers_result.back().text;
|
||||
|
||||
int delay = Task.get("BattleQuickFormationOCR")->post_delay;
|
||||
|
||||
int skill = 1;
|
||||
@@ -218,6 +219,7 @@ bool asst::BattleFormationTask::select_opers_in_cur_page(std::vector<OperGroup>&
|
||||
sleep(delay);
|
||||
if (1 <= skill && skill <= 3) {
|
||||
ctrler()->click(SkillRectArray.at(skill - 1ULL));
|
||||
sleep(delay);
|
||||
}
|
||||
groups.erase(iter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user