mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: 修复不能部署干员的问题
This commit is contained in:
@@ -282,8 +282,8 @@ bool asst::BattleHelper::deploy_oper(const std::string& name, const Point& loc,
|
||||
}
|
||||
bool deploy_with_pause =
|
||||
ControlFeat::support(m_inst_helper.ctrler()->support_features(), ControlFeat::SWIPE_WITH_PAUSE);
|
||||
m_inst_helper.ctrler()->swipe(Point(oper_rect.x, oper_rect.y), Point(target_point.x, target_point.y), duration,
|
||||
false, swipe_oper_task_ptr->special_params.at(1),
|
||||
Point oper_point(oper_rect.x + oper_rect.width / 2, oper_rect.y + oper_rect.height / 2);
|
||||
m_inst_helper.ctrler()->swipe(oper_point, target_point, duration, false, swipe_oper_task_ptr->special_params.at(1),
|
||||
swipe_oper_task_ptr->special_params.at(2), deploy_with_pause);
|
||||
|
||||
// 拖动干员朝向
|
||||
|
||||
Reference in New Issue
Block a user