Skip to content
Extraits de code Groupes Projets
Valider 60fd34b1 rédigé par Cloud's avatar Cloud
Parcourir les fichiers

fixed thief who can't choose the role proposedwq

parent 89e011d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!10fixed thief who can't choose the role proposedwq
......@@ -118,6 +118,7 @@ class Boooob(ircbot.SingleServerIRCBot):
self.voleur = ""
self.voleurtrig = 1
choix = []
self.ancien = ""
self.canlive = 1
......@@ -157,7 +158,7 @@ class Boooob(ircbot.SingleServerIRCBot):
# Voleur
if self.voleur == personne:
#TODO doit n'avoir que deux choix parmis toutes les cartes restantes
for f in self.cartes:
for f in choix:
if f in message:
serv.privmsg(personne, "Tu as choisi : "+f)
if f == "loups":
......@@ -458,7 +459,6 @@ class Boooob(ircbot.SingleServerIRCBot):
self.phase2trig = 0
if self.voleur != "" and self.phase2 == 0 and self.voleurtrig == 1:
choix = []
choix.append(self.cartes.pop(rand.randint(0, len(self.cartes) -1)))
choix.append(self.cartes.pop(rand.randint(0, len(self.cartes) - 1))) # on crée une liste de deux choix
serv.privmsg(self.voleur, "Tu es le voleur, tes choix sont : " +
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter