hunter now kills players behind itself

This commit is contained in:
Thorsten Rausch 2021-06-10 10:21:45 +02:00
parent bc6d839294
commit dd34403a3e

View File

@ -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;
}
}