Add a property if there are multiple guessers on a team
This commit is contained in:
parent
0d8f13a0a5
commit
249bc5bca6
1 changed files with 9 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue