fix: 尝试修复自动战斗干员撤不掉的问题

This commit is contained in:
MistEO
2022-08-31 23:17:29 +08:00
parent 7d8e1ccbce
commit 3700a979e6
3 changed files with 21 additions and 2 deletions

View File

@@ -6436,8 +6436,27 @@
]
},
"BattleOperRetreat": {
"roi": [
554,
146,
119,
118
],
"templThreshold": 0.7,
"cache": false,
"action": "ClickSelf",
"maskRange": [
100,
255
],
"onErrorNext": [
"BattleOperRetreatJustClick"
],
"rearDelay": 300
},
"BattleOperRetreatJustClick": {
"algorithm": "JustReturn",
"rearDelay": 200,
"rearDelay": 300,
"action": "ClickRect",
"specificRect": [
580,

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

View File

@@ -536,7 +536,7 @@ bool asst::BattleProcessTask::oper_retreat(const BattleAction& action)
m_ctrler->click(pos);
sleep(Task.get("BattleUseOper")->pre_delay);
return ProcessTask(*this, { "BattleOperRetreat" }).set_task_delay(0).run();
return ProcessTask(*this, { "BattleOperRetreat" }).set_task_delay(0).set_retry_times(3).run();
}
bool asst::BattleProcessTask::use_skill(const BattleAction& action)