From 6b7d51b061ec7b31f362588749245f25acb92c3b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 9 Nov 2021 00:57:26 +0100 Subject: [PATCH] Dead players can't play --- orochi/bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orochi/bot.py b/orochi/bot.py index 2e45151..c9c076f 100644 --- a/orochi/bot.py +++ b/orochi/bot.py @@ -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: