Dead players can't play

This commit is contained in:
Yohann D'ANELLO 2021-11-09 00:57:26 +01:00
parent 9c041387d1
commit 6b7d51b061
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 3 additions and 0 deletions

View File

@ -442,6 +442,9 @@ class VoteView(disnake.ui.View):
current_player = player
break
if current_player.score <= 0:
return await interaction.send("Vous êtes mort⋅e !")
current_vote: RoundVote | None = None
for room in current_round.rooms:
for v in room.votes: