mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: fix wrong behavior when recruit permit ran out
This commit is contained in:
@@ -139,7 +139,9 @@ bool asst::AutoRecruitTask::_run()
|
||||
|
||||
// m_cur_times means how many times has the confirm button been pressed, NOT expedited plan used
|
||||
while ((m_use_expedited || !m_pending_recruit_slot.empty()) && m_cur_times != m_max_times) {
|
||||
if (m_force_discard_flag) { return false; }
|
||||
if (m_slot_fail >= slot_retry_limit) { return false; }
|
||||
if (!check_recruit_home_page()) { return false; }
|
||||
if (m_use_expedited) {
|
||||
Log.info("ready to use expedited");
|
||||
if (need_exit()) return false;
|
||||
@@ -244,6 +246,7 @@ bool asst::AutoRecruitTask::recruit_one()
|
||||
if (!confirm()) { // ran out of recruit permit?
|
||||
Log.info("Failed to confirm current recruit config.");
|
||||
m_force_discard_flag = true;
|
||||
click_return_button();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user