From c703733e6f6ea77a96654521958a231a69662d12 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Tue, 9 Feb 2021 19:15:36 -0800 Subject: [PATCH] Clean up kill assist code --- mods/pvp/kill_assist/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/pvp/kill_assist/init.lua b/mods/pvp/kill_assist/init.lua index 8e48655..ff0fafa 100644 --- a/mods/pvp/kill_assist/init.lua +++ b/mods/pvp/kill_assist/init.lua @@ -26,7 +26,6 @@ end function kill_assist.add_heal_assist(victim, healed_hp) if not kill_assists[victim] then return end - -- Player names can't contain '!' so it's safe to use here kill_assists[victim].hp_offset = kill_assists[victim].hp_offset + healed_hp end @@ -41,7 +40,7 @@ function kill_assist.reward_assists(victim, killer, reward) local color = "0x00FFFF" if name == killer or help_percent >= 0.33 then - reward = math.max(math.floor((reward * help_percent)*100)/100, 0) + reward = math.max(math.floor((reward * help_percent)*100)/100, 1) end match.score = match.score + reward