From 133abfe1953189fbf4cbbccb7f708982182af868 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 9 Nov 2021 00:58:59 +0100 Subject: [PATCH] Dan is a special case --- orochi/bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/orochi/bot.py b/orochi/bot.py index c9c076f..a53d318 100644 --- a/orochi/bot.py +++ b/orochi/bot.py @@ -292,7 +292,10 @@ async def close(ctx: commands.Context): await channel.send("Les votes sont à présent clos ! " "Rendez-vous dans la salle principale pour découvrir les scores.") if player.score <= 0: - await channel.send("Tiens ! Vous êtes morts :)") + if player.name == "Dan": + await channel.send("Tiens ! Vous êtes m... Vous semblez bien tenir à la piqûre.") + else: + await channel.send("Tiens ! Vous êtes morts :)") elif player.score >= 9: await channel.send("Vous avez plus de 9 points. Vous pouvez désormais passer la porte 9.\n" "Mais ... Attendrez-vous vos camarades ?") @@ -442,7 +445,7 @@ class VoteView(disnake.ui.View): current_player = player break - if current_player.score <= 0: + if current_player.score <= 0 and current_player.name != "Dan": return await interaction.send("Vous êtes mort⋅e !") current_vote: RoundVote | None = None