Fix county being awarded on suicide
This commit is contained in:
parent
55b9ecf4a8
commit
c7a8998b7c
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ minetest.register_on_joinplayer(function(player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
ctf.register_on_killedplayer(function(victim, killer)
|
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
|
if victim == bountied_player then
|
||||||
local main, match = ctf_stats.player(killer)
|
local main, match = ctf_stats.player(killer)
|
||||||
if main and match then
|
if main and match then
|
||||||
|
|
Loading…
Reference in a new issue