From 1b689ed6c2715cdc909fc5e1e2ca589102aa39bf Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Sun, 22 Nov 2020 14:06:25 -0800 Subject: [PATCH] Reset combat on new match --- mods/pvp/anticoward/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mods/pvp/anticoward/init.lua b/mods/pvp/anticoward/init.lua index 71b435a..1dc70ec 100644 --- a/mods/pvp/anticoward/init.lua +++ b/mods/pvp/anticoward/init.lua @@ -162,3 +162,11 @@ minetest.register_globalstep(function(dtime) globtimer = 0 end end) + +ctf_match.register_on_new_match(function() + potential_cowards = {} +end) + +ctf.register_on_new_game(function() + potential_cowards = {} +end)