mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 已在首页时不再触发翻至首页
This commit is contained in:
@@ -97,7 +97,10 @@ void asst::RoguelikeFormationTaskPlugin::clear_and_reselect()
|
||||
|
||||
m_last_detected_oper_names.clear();
|
||||
oper_list.clear();
|
||||
swipe_to_first_page();
|
||||
|
||||
if (cur_page > 1) {
|
||||
swipe_to_first_page();
|
||||
}
|
||||
|
||||
while (analyze()) { // 返回true说明新增了干员,可能还有下一页
|
||||
ProcessTask(*this, { "RoguelikeRecruitOperListSlowlySwipeToTheRight" }).run();
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace asst
|
||||
void swipe_to_first_page();
|
||||
|
||||
private:
|
||||
int cur_page = 0;
|
||||
int cur_page = 1;
|
||||
int max_page = 0;
|
||||
std::vector<RoguelikeFormationImageAnalyzer::FormationOper> oper_list;
|
||||
std::vector<std::string> m_last_detected_oper_names; // 上一页识别到的干员
|
||||
|
||||
Reference in New Issue
Block a user