mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
feat.自动战斗支持关闭技能
This commit is contained in:
@@ -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,
|
||||
|
||||
BIN
resource/template/BattleSkillStopOnClick.png
Normal file
BIN
resource/template/BattleSkillStopOnClick.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 634 B |
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user