Only send new hand response to the guessers on the correct team.
This commit is contained in:
parent
9ae1568bea
commit
c171d93963
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export default (io: Server, socket: Socket, data: NewHand) => {
|
|||
// Add the questions and then alert the game clients about the changes
|
||||
team.addCardsToHand(deck.draw(handSize));
|
||||
game.log.silly(`Drew a new hand of cards for team ${data.team}.`);
|
||||
io.to(game.id).emit(`UpdateHand`, {
|
||||
io.to(`${game.id}:${team.id}:guesser`).emit(`UpdateHand`, {
|
||||
status: 200,
|
||||
mode: `replace`,
|
||||
questions: team.hand,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue