1.指定枪械,未对特定场景部件有伤害

This commit is contained in:
aozhiwei 2021-06-17 20:04:19 +08:00
parent ec4b690440
commit cf49d9a30d

View File

@ -558,6 +558,10 @@ void Obstacle::OnBulletHit(Bullet* bullet)
if (!IsDead(bullet->room) &&
Attackable() &&
!IsTerminatorAirDropBox(bullet->room)) {
if (meta->receive_special_damage_type != 0 &&
((bullet->gun_meta->special_damage_type & meta->receive_special_damage_type) == 0)) {
return;
}
float dmg = bullet->GetAtk() * (1 + bullet->sender.Get()->GetAttrRate(kHAT_Atk)) +
bullet->sender.Get()->GetAttrAbs(kHAT_Atk);
float def = 0;