From 17edd42b5d717e849af809695a591ce2858cc729 Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 5 Jun 2023 00:35:30 -0700 Subject: [PATCH] Arena - prevent self-bombing from stealing kills --- mods/arena/arena-proj-bobomb.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/arena/arena-proj-bobomb.lua b/mods/arena/arena-proj-bobomb.lua index d1635625..049bf179 100644 --- a/mods/arena/arena-proj-bobomb.lua +++ b/mods/arena/arena-proj-bobomb.lua @@ -53,7 +53,9 @@ function bhv_arena_bobomb_expode(obj, directHitLocal) obj.oDamageOrCoinValue = 3 end interact_damage(m, INTERACT_DAMAGE, obj) - e.lastDamagedByGlobal = obj.oArenaBobombGlobalOwner + if np.globalIndex ~= obj.oArenaBobombGlobalOwner then + e.lastDamagedByGlobal = obj.oArenaBobombGlobalOwner + end -- knockback local ownerNp = network_player_from_global_index(obj.oArenaBobombGlobalOwner)