correction kill a moitié
This commit is contained in:
parent
b76d85c773
commit
6f94d2a6cb
1 changed files with 5 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue