From c7a8998b7c66a6345fed4023c632a5fd02ebd402 Mon Sep 17 00:00:00 2001 From: ClobberXD Date: Thu, 12 Jul 2018 23:11:56 +0530 Subject: [PATCH] Fix county being awarded on suicide --- mods/ctf_bounties/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ctf_bounties/init.lua b/mods/ctf_bounties/init.lua index 8cb6f4f..687bd02 100644 --- a/mods/ctf_bounties/init.lua +++ b/mods/ctf_bounties/init.lua @@ -80,6 +80,10 @@ minetest.register_on_joinplayer(function(player) end) ctf.register_on_killedplayer(function(victim, killer) + -- Suicide is not encouraged here at CTF + if victim == killer then + return + end if victim == bountied_player then local main, match = ctf_stats.player(killer) if main and match then