diff --git a/public_html/js/global.js b/public_html/js/global.js index 53bc2f2..c6b2b8f 100644 --- a/public_html/js/global.js +++ b/public_html/js/global.js @@ -87,8 +87,12 @@ function removePlayer(id) function addKill(idKilled,idKiller) { - if(player.id==idKiller) + if(player.id==idKiller){ player.kill++; + } + if(player.id==idKilled){ + player.death++; + } players.forEach((p) => { if(p.id==idKilled) p.death++;