Fix team name in bounty announcement

It was set to the message receiver's color instead of the bounty holder's color.
This commit is contained in:
Gaël C 2018-06-25 00:15:18 +02:00 committed by rubenwardy
parent 469347f716
commit ead8366790

View file

@ -2,7 +2,7 @@ local bountied_player = nil
local bounty_score = 0
local function announce(name)
local _, tcolor = ctf_colors.get_color(name, ctf.player(name))
local _, tcolor = ctf_colors.get_color(bountied_player, ctf.player(bountied_player))
tcolor = tcolor:gsub("0x", "#")
minetest.chat_send_player(name,
minetest.colorize("#fff326", "The next person to kill ") ..