diff --git a/mods/pvp/kill_assist/init.lua b/mods/pvp/kill_assist/init.lua index 85b424e..09d4ce4 100644 --- a/mods/pvp/kill_assist/init.lua +++ b/mods/pvp/kill_assist/init.lua @@ -33,7 +33,11 @@ function kill_assist.reward_assists(victim, killer, reward) local max_hp = minetest.get_player_by_name(victim):get_properties().max_hp or 20 if not kill_assists[victim] then - kill_assist.add_assist(victim, killer, max_hp) + if victim ~= killer then + kill_assist.add_assist(victim, killer, max_hp) + else + return + end end for name, damage in pairs(kill_assists[victim].players) do