From abf4d4ef702162dce79730efbab70f36463bf39f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 5 Aug 2020 11:51:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=95=E6=9C=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 761ce36..8457009 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -3521,7 +3521,7 @@ void Human::ProcSkillPhase(MetaData::SkillPhase* phase) MetaMgr::Instance()->GetEquipUpgrade(weapon_meta->i->id()); MetaData::Equip* bullet_meta = MetaMgr::Instance()->GetEquip(weapon_meta->i->use_bullet()); - if (bullet_meta) { + if (bullet_meta && target_distance > 0.00001f) { a8::Vec2 old_attack_dir = attack_dir; attack_dir = entity->GetPos() - GetPos(); attack_dir.Normalize();