fix:correction kill

This commit is contained in:
Baptiste 2023-12-28 11:45:53 +01:00
parent 3c47694f3d
commit d075d532d7

View file

@ -41,6 +41,12 @@ class Player
this.death++; this.death++;
this.health=defaulthealth; this.health=defaulthealth;
players.forEach((p) => {
if(p.id==killerId) {
p.kill++;
}
});
net.died(this.id,killerId); net.died(this.id,killerId);
} }
} }