fix: 修复自动战斗子弹时间部署不生效的问题

This commit is contained in:
MistEO
2022-12-03 20:16:09 +08:00
parent 7eeef88b93
commit 26ead84646

View File

@@ -519,18 +519,20 @@ bool asst::BattleProcessTask::wait_condition(const BattleAction& action)
bool asst::BattleProcessTask::oper_deploy(const BattleAction& action, bool only_pre_process)
{
const auto use_oper_task_ptr = Task.get("BattleUseOper");
const auto swipe_oper_task_ptr = Task.get("BattleSwipeOper");
const auto& oper_info = m_group_to_oper_mapping[action.group_name];
auto iter = m_cur_opers_info.find(oper_info.name);
Rect oper_rect = iter->second.rect;
if (only_pre_process) {
if (only_pre_process && !m_in_bullet_time) {
// 点击干员进入子弹时间
ctrler()->click(oper_rect);
return true;
}
const auto use_oper_task_ptr = Task.get("BattleUseOper");
const auto swipe_oper_task_ptr = Task.get("BattleSwipeOper");
// 拖动到场上
Point placed_point = m_side_tile_info[action.location].pos;