From dd34403a3e8d033e1c66cae8318e3c7d949eb69a Mon Sep 17 00:00:00 2001 From: Thorsten Rausch Date: Thu, 10 Jun 2021 10:21:45 +0200 Subject: [PATCH] hunter now kills players behind itself --- public/js/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/player.js b/public/js/player.js index d1e8ce0..ca43054 100644 --- a/public/js/player.js +++ b/public/js/player.js @@ -31,7 +31,7 @@ class Hunter { hunt(players) { for (let i = 0; i < players.length; i++) { - if (players[i].position === this.position) { + if (players[i].position <= this.position) { players[i].alive = false; } }