mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: 修复自动编队时不重试的问题
This commit is contained in:
@@ -157,11 +157,6 @@ std::vector<asst::TextRect> asst::BattleFormationTask::analyzer_opers()
|
||||
}
|
||||
sort_by_vertical_(opers_result);
|
||||
|
||||
if (m_the_right_name == opers_result.back().text) {
|
||||
return {};
|
||||
}
|
||||
m_the_right_name = opers_result.back().text;
|
||||
|
||||
std::vector<TextRect> tr_res;
|
||||
for (const auto& res : opers_result) {
|
||||
tr_res.emplace_back(TextRect { res.rect, res.score, res.text });
|
||||
@@ -256,7 +251,7 @@ bool asst::BattleFormationTask::click_role_table(battle::Role role)
|
||||
{ battle::Role::Sniper, "Sniper" }, { battle::Role::Special, "Special" }, { battle::Role::Support, "Support" },
|
||||
{ battle::Role::Tank, "Tank" }, { battle::Role::Warrior, "Warrior" }, { battle::Role::Unknown, "All" },
|
||||
};
|
||||
m_the_right_name.clear();
|
||||
m_last_oper_name.clear();
|
||||
|
||||
auto role_iter = RoleNameType.find(role);
|
||||
if (role_iter == RoleNameType.cend()) {
|
||||
|
||||
@@ -53,11 +53,9 @@ namespace asst
|
||||
|
||||
std::string m_stage_name;
|
||||
std::unordered_map<battle::Role, std::vector<OperGroup>> m_formation;
|
||||
std::string m_the_right_name;
|
||||
std::string m_support_unit_name;
|
||||
DataResource m_data_resource = DataResource::Copilot;
|
||||
std::vector<AdditionalFormation> m_additional;
|
||||
|
||||
std::string m_last_oper_name;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user