From 6f94d2a6cb696672b9b5dc503867b18b4f116ff5 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Thu, 21 Dec 2023 09:52:17 +0100 Subject: [PATCH] =?UTF-8?q?correction=20kill=20a=20moiti=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/js/global.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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++;