mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
perf.自动战斗,若oper为空,则不选人
This commit is contained in:
@@ -16,12 +16,16 @@ bool asst::BattleFormationTask::_run()
|
||||
if (!battle.contains_actions(m_stage_name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_groups = battle.get_actions(m_stage_name).groups;
|
||||
if (m_groups.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!enter_selection_page()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_groups = battle.get_actions(m_stage_name).groups;
|
||||
|
||||
// TODO: 需要加一个滑到头了的检测
|
||||
while (true) {
|
||||
select_opers_in_cur_page();
|
||||
|
||||
Reference in New Issue
Block a user