Arena - prevent self-bombing from stealing kills

This commit is contained in:
MysterD 2023-06-05 00:35:30 -07:00
parent 60db46a6fa
commit 17edd42b5d

View file

@ -53,7 +53,9 @@ function bhv_arena_bobomb_expode(obj, directHitLocal)
obj.oDamageOrCoinValue = 3 obj.oDamageOrCoinValue = 3
end end
interact_damage(m, INTERACT_DAMAGE, obj) interact_damage(m, INTERACT_DAMAGE, obj)
if np.globalIndex ~= obj.oArenaBobombGlobalOwner then
e.lastDamagedByGlobal = obj.oArenaBobombGlobalOwner e.lastDamagedByGlobal = obj.oArenaBobombGlobalOwner
end
-- knockback -- knockback
local ownerNp = network_player_from_global_index(obj.oArenaBobombGlobalOwner) local ownerNp = network_player_from_global_index(obj.oArenaBobombGlobalOwner)