Compare commits

...

2 commits

Author SHA1 Message Date
Baptiste
8592e8eece lien vers airinsa 2023-12-21 09:52:23 +01:00
Baptiste
6f94d2a6cb correction kill a moitié 2023-12-21 09:52:17 +01:00
2 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,6 @@
<title>FakeBook</title>
</head>
<body>
<img src="hairinsa.png" width="100%">
<a href="https://airinsa.insat.fr"><img src="hairinsa.png" width="100%"></a>
</body>
</html>

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