This commit is contained in:
aozhiwei 2021-08-13 03:41:06 +00:00
parent 5340384caa
commit dc4f20fb24

View File

@ -441,7 +441,7 @@ void Bullet::Check(float distance)
if (gun_upgrade_meta && gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange) > 0) {
bullet_range += gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange);
}
if (!objects.empty() || distance > bullet_range ||
if (!objects.empty() || (!IsBomb() && distance > bullet_range) ||
(IsBomb() && meta->i->_inventory_slot() != IS_RPG && distance >= fly_distance)
) {
if (IsBomb()) {