From 0686218ec3f8cb4248658cdbf4878467d6f021c7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 17 Jun 2021 13:35:56 +0800 Subject: [PATCH] =?UTF-8?q?2.=E6=8C=87=E5=AE=9A=E6=9E=AA=E6=A2=B0=EF=BC=8C?= =?UTF-8?q?=E5=AF=B9=E6=9C=BA=E7=94=B2=E4=BC=A4=E5=AE=B3=E6=9C=89=E5=8A=A0?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/car.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/gameserver/car.cc b/server/gameserver/car.cc index c30103d..bc7081a 100644 --- a/server/gameserver/car.cc +++ b/server/gameserver/car.cc @@ -265,7 +265,7 @@ void Car::OnBulletHit(Bullet* bullet) { if (!IsDead(room)) { float dmg = bullet->GetAtk() * (1 + bullet->sender.Get()->GetAttrRate(kHAT_Atk)) + - bullet->sender.Get()->GetAttrAbs(kHAT_Atk); + bullet->sender.Get()->GetAttrAbs(kHAT_Atk) + bullet->gun_meta->i->atk_mech(); float def = ability.def * (1 + GetAttrRate(kHAT_Def)) + GetAttrAbs(kHAT_Def); float finaly_dmg = dmg * (1 - def/MetaMgr::Instance()->K);