mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 自动战斗导航retry异常, 跳过作业
This commit is contained in:
@@ -22,7 +22,7 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, Assistant* inst) :
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
m_multi_copilot_plugin_ptr->set_retry_times(20);
|
||||
m_multi_copilot_plugin_ptr->set_retry_times(0);
|
||||
m_multi_copilot_plugin_ptr->set_battle_task_ptr(m_battle_task_ptr);
|
||||
m_subtasks.emplace_back(m_multi_copilot_plugin_ptr);
|
||||
|
||||
|
||||
@@ -44,7 +44,13 @@ bool asst::MultiCopilotTaskPlugin::_run()
|
||||
callback(AsstMsg::SubTaskExtraInfo, info);
|
||||
|
||||
bool ret = true;
|
||||
ret = ret && navigate_to_stage(config.nav_name);
|
||||
for (int i = 0; i < m_retry_times; ++i) {
|
||||
ret = ret && navigate_to_stage(config.nav_name);
|
||||
sleep(Config.get_options().task_delay);
|
||||
if (ret || need_exit()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
ProcessTask(*this, { "NotUsePrts" }).set_ignore_error(true).set_retry_times(0).run();
|
||||
if (config.is_raid) {
|
||||
|
||||
Reference in New Issue
Block a user