From d9540a460ed0f0dcd7d7e4ae6e590ba811612255 Mon Sep 17 00:00:00 2001 From: AngelRionCervi <34657288+AngelRionCervi@users.noreply.github.com> Date: Mon, 10 Jun 2019 10:07:21 +0200 Subject: [PATCH] Added graphic to show the picking pattern (#143) * renamed pickingPattern -> getPickingPattern --- lib/gather/gather.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gather/gather.js b/lib/gather/gather.js index 6c394e1..c1fb849 100644 --- a/lib/gather/gather.js +++ b/lib/gather/gather.js @@ -309,8 +309,8 @@ Gather.prototype.moveToMarine = function (user, mover) { let leader = this.getGatherer(mover); if (leader.team !== "marine" || !leader.leader || - this.pickingPattern()[this.pickingTurnIndex()] !== "marine") return; - + this.getPickingPattern()[this.pickingTurnIndex()] !== "marine") return; + if (user && this.containsUser(user)) { if (this.getGatherer(user).team !== "lobby") return; }