correction kill a moitié

This commit is contained in:
Baptiste 2023-12-21 09:52:17 +01:00
parent b76d85c773
commit 6f94d2a6cb

View file

@ -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++;