Announce bounties only to the enemy team (#849)
This commit is contained in:
parent
c0f224a5bc
commit
433509bcdd
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ end
|
||||||
local function announce_all()
|
local function announce_all()
|
||||||
if bountied_player then
|
if bountied_player then
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
if bountied_player ~= player:get_player_name() then
|
local pname = player:get_player_name()
|
||||||
announce(player:get_player_name())
|
if ctf.player(pname).team ~= ctf.player(bountied_player).team then
|
||||||
|
announce(pname)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue