fix:correction kill
This commit is contained in:
parent
3c47694f3d
commit
d075d532d7
1 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,12 @@ class Player
|
|||
this.death++;
|
||||
this.health=defaulthealth;
|
||||
|
||||
players.forEach((p) => {
|
||||
if(p.id==killerId) {
|
||||
p.kill++;
|
||||
}
|
||||
});
|
||||
|
||||
net.died(this.id,killerId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue