feat.自动战斗支持关闭技能

This commit is contained in:
MistEO
2022-05-27 01:22:35 +08:00
parent 265c21cba8
commit 8a9b3b89d8
3 changed files with 21 additions and 1 deletions

View File

@@ -4682,6 +4682,26 @@
"Stop"
]
},
"BattleSkillStopOnClick": {
"roi": [
748,
414,
210,
118
],
"cache": false,
"action": "ClickSelf",
"rectMove": [
0,
-110,
90,
90
],
"next": [
"BattleSkillStopOnClick",
"Stop"
]
},
"BattleUseOper": {
"algorithm": "JustReturn",
"preDelay": 500,

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

View File

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