0
0
Fork 0

Add a property if there are multiple guessers on a team

This commit is contained in:
Oliver-Akins 2021-01-26 16:48:23 -07:00
parent 0d8f13a0a5
commit 249bc5bca6

View file

@ -85,6 +85,15 @@ export default {
}; };
return false; return false;
}, },
multipleGuessersOnTeam() {
let player_count = 0;
for (var player of this.$store.state.players) {
if (player.team === this.$store.state.team && this.userRole === player.role) {
player_count++;
};
};
return player_count > 1;
},
}, },
methods: { methods: {
sendCard(cardIndex) { sendCard(cardIndex) {