This commit is contained in:
aozhiwei 2023-03-23 16:22:14 +08:00
parent cfd52a6e0e
commit 5906b7288a

View File

@ -450,7 +450,7 @@ void Skill::ProcSpecDirShotPhase(const mt::SkillPhase* phase)
auto context_pos_p = owner->context_pos;
owner->room->xtimer.SetTimeoutEx
(
(target_distance / weapon_meta->bullet_speed() + 1.5) * 1000.0f / FRAME_RATE_MS,
(target_distance / weapon_meta->bullet_speed() + 1.0) * 1000.0f / FRAME_RATE_MS,
[this, context_pos_p, weapon_meta]
(int event, const a8::Args* args)
{
@ -474,8 +474,9 @@ void Skill::ProcSpecDirShotPhase(const mt::SkillPhase* phase)
target_distance = 0;
owner->TryAddBuff(owner, 202013);
owner->TryAddBuff(owner, 202014);
#if 0
target_id = GetTraceTargetId(owner);
#endif
}
glm::vec3 old_attack_dir = owner->GetAttackDir();
glm::vec3 attack_dir = owner->skill_dir_;