fix: 尝试修复肉鸽编队错误,max page误判时仍然重置回最左边 (#9262)

This commit is contained in:
Lancarus
2024-06-03 23:42:10 +08:00
committed by GitHub
parent ef458b41fd
commit 6c19c1ccbd

View File

@@ -189,7 +189,7 @@ bool asst::RoguelikeFormationTaskPlugin::select(RoguelikeFormationImageAnalyzer:
if (cur_page != oper.page) {
Log.info(__FUNCTION__, "swipe from page", cur_page, "to page", oper.page);
// 在最大页码时(当总页数>=2从右往左划可能会有对不齐的问题直接划动到底
if (cur_page > oper.page && max_page >= 2 && cur_page == max_page) {
if ((cur_page > oper.page && max_page >= 2 && cur_page == max_page) || max_page == 1) {
for (; cur_page > 0; --cur_page) { // 多划一次到不存在的第0页
ProcessTask(*this, { "RoguelikeRecruitOperListSwipeToTheLeft" }).run();
}