added active pawns flashing

This commit is contained in:
Wenszel
2021-04-29 19:55:39 +02:00
parent 3ec1fad0c8
commit 063a0790c2
2 changed files with 18 additions and 12 deletions
+1
View File
@@ -21,6 +21,7 @@ router.post('/move', function (req, res){
}else{
doc.players[index+1].nowMoving = true;
}
doc.nextMoveTime = Date.now()+30000;
RoomModel.findOneAndUpdate({_id: req.session.roomId}, doc, function(err, doc){
res.send("Correctly Moved!");
});