fix: 尝试修复肉鸽超时后无法撤退干员的问题

fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/994
This commit is contained in:
MistEO
2022-07-02 00:27:29 +08:00
parent c20d35dfc5
commit 89dddac756
2 changed files with 3 additions and 5 deletions

View File

@@ -5336,7 +5336,7 @@
},
"BattleOperRetreat": {
"algorithm": "JustReturn",
"rearDelay": 100,
"rearDelay": 200,
"action": "ClickRect",
"specificRect": [
580,

View File

@@ -341,9 +341,7 @@ bool asst::RoguelikeBattleTaskPlugin::retreat(const Point& point)
m_ctrler->click(point);
sleep(Task.get("BattleUseOper")->pre_delay);
ProcessTask task(*this, { "BattleOperRetreat" });
task.set_retry_times(0);
return task.run();
return ProcessTask(*this, { "BattleOperRetreat" }).run();
}
void asst::RoguelikeBattleTaskPlugin::all_melee_retreat()
@@ -353,7 +351,7 @@ void asst::RoguelikeBattleTaskPlugin::all_melee_retreat()
auto& type = tile_info.buildable;
if (type == Loc::Melee || type == Loc::All) {
if (!retreat(tile_info.pos)) {
return;
continue;
}
}
}