perf.优化干员技能使用

This commit is contained in:
MistEO
2022-03-31 23:17:29 +08:00
parent 305b377f31
commit 9dbe9f7492
2 changed files with 2 additions and 1 deletions

View File

@@ -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)