mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
perf.优化干员技能使用
This commit is contained in:
@@ -374,6 +374,7 @@ bool asst::BattleProcessTask::oper_retreat(const BattleAction& action)
|
||||
}
|
||||
Point pos = iter->second.pos;
|
||||
m_ctrler->click(pos);
|
||||
sleep(Task.get("BattleUseOper")->pre_delay);
|
||||
|
||||
m_used_opers.erase(name);
|
||||
|
||||
@@ -391,6 +392,7 @@ bool asst::BattleProcessTask::use_skill(const BattleAction& action)
|
||||
|
||||
Point pos = iter->second.pos;
|
||||
m_ctrler->click(pos);
|
||||
sleep(Task.get("BattleUseOper")->pre_delay);
|
||||
|
||||
return ProcessTask(*this, { "BattleSkillReadyOnClick" })
|
||||
.set_task_delay(0)
|
||||
|
||||
Reference in New Issue
Block a user