-
I see that when you change a "bluff" role, this change is made on the table called "players" ( |
Beta Was this translation helpful? Give feedback.
Answered by
bra1n
Sep 11, 2023
Replies: 1 comment
-
The RoleModal.vue will get the "seat" (the index) of the player that you're selecting a role for, but in case it's a bluff, it will receive a negative index. This is checked against here and if it finds a negative index, it will update the bluffs instead of the players. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MRegnard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The RoleModal.vue will get the "seat" (the index) of the player that you're selecting a role for, but in case it's a bluff, it will receive a negative index. This is checked against here and if it finds a negative index, it will update the bluffs instead of the players.