Allow friendly fire if you're killing yourself
This commit is contained in:
parent
f3d2dc934a
commit
f3379d0dfd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user