From daafb1236381258d4164324dce16fa91117890f8 Mon Sep 17 00:00:00 2001 From: MinetestSam <42088654+MinetestSam@users.noreply.github.com> Date: Mon, 16 Dec 2019 01:17:19 +0530 Subject: [PATCH] Change greater than operations to greater than or equal to in `is_pro` (#528) --- mods/ctf/ctf_stats/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_stats/init.lua b/mods/ctf/ctf_stats/init.lua index 05de3c7..12646a3 100644 --- a/mods/ctf/ctf_stats/init.lua +++ b/mods/ctf/ctf_stats/init.lua @@ -198,7 +198,7 @@ end function ctf_stats.is_pro(name) local stats = ctf_stats.player(name) local kd = stats.kills / (stats.deaths == 0 and 1 or stats.deaths) - return stats.score > 10000 and kd > 1.5 + return stats.score >= 10000 and kd >= 1.5 end ctf.register_on_join_team(function(name, tname)