fix: 修复重岳等干员带三技能时点错的问题 (#7450)

选择三技能前先进行一次滑动

close #4977 
fix #7349
This commit is contained in:
zzyyyl
2023-12-01 23:52:23 +08:00
committed by GitHub
parent 321f36c92f
commit a39e111ae3
2 changed files with 26 additions and 0 deletions

View File

@@ -7831,11 +7831,34 @@
"BattleQuickFormationSkill3": {
"algorithm": "JustReturn",
"action": "ClickRect",
"specificRect": [
15,
650,
80,
30
]
},
"BattleQuickFormationSkill-SwipeToTheDown": {
"algorithm": "JustReturn",
"action": "Swipe",
"postDelay": 100,
"specificRect": [
15,
710,
80,
10
],
"rectMove": [
15,
385,
80,
100
],
"specialParams": [
150,
0,
1,
1
]
},
"BattleQuickFormationConfirm": {

View File

@@ -340,6 +340,9 @@ bool asst::BattleFormationTask::select_opers_in_cur_page(std::vector<OperGroup>&
ctrler()->click(res.rect);
sleep(delay);
if (1 <= skill && skill <= 3) {
if (skill == 3) {
ProcessTask(*this, { "BattleQuickFormationSkill-SwipeToTheDown" }).run();
}
ctrler()->click(SkillRectArray.at(skill - 1ULL));
sleep(delay);
}