Update armedvehicles_handler.lua

This commit is contained in:
Luna 2024-09-09 16:14:12 +02:00
parent 57386d2ad9
commit 6667191a73

View File

@ -341,9 +341,9 @@ local IsValidDMGType = {
function simfphys.TankApplyDamage(ent, Damage, Type)
if not IsValid( ent ) or not isnumber( Damage ) or not isnumber( Type ) then return end
if Type == DMG_PROPEXPLOSION then Damage = Damage * 10 end
if IsValidDMGType[ Type ] or (DMGTypeException[ Type ] and Damage > 100) then
if DMGTypeException[ Type ] then
Damage = Damage - 100