This commit is contained in:
aozhiwei 2022-10-18 22:24:59 +08:00
parent 64485476af
commit ff7d4882f8

View File

@ -944,6 +944,9 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
target_distance = std::max(0.0001f, target_distance);
}
if (bullet_meta && target_distance > 0.00001f) {
if (CurrentSkill()->meta->GetMagicId() == MAGIC_HJHX) {
target_distance = 0;
}
a8::Vec2 old_attack_dir = GetAttackDir();
a8::Vec2 attack_dir = skill_dir_;
attack_dir.Normalize();