From f3379d0dfde59a09c4065b0f424ce8a61e2593f9 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 5 Apr 2016 23:18:08 +0100 Subject: [PATCH] Allow friendly fire if you're killing yourself --- ctf/teams.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctf/teams.lua b/ctf/teams.lua index 15f694c..a4bb50d 100644 --- a/ctf/teams.lua +++ b/ctf/teams.lua @@ -452,7 +452,7 @@ minetest.register_on_punchplayer(function(player, hitter, return end - if to.team == from.team and to.team ~= "" and to.team ~= nil then + if to.team == from.team and to.team ~= "" and to.team ~= nil and to.name ~= from.name then minetest.chat_send_player(hitter:get_player_name(), player:get_player_name() .. " is on your team!") if not ctf.setting("friendly_fire") then return true