Skip to content

Commit

Permalink
Fix county being awarded on suicide
Browse files Browse the repository at this point in the history
  • Loading branch information
ClobberXD authored and rubenwardy committed Jul 12, 2018
1 parent 55b9ecf commit c7a8998
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mods/ctf_bounties/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7a8998

Please sign in to comment.