🐛 fix dice collisions

This commit is contained in:
ddorn 2020-05-16 12:46:14 +02:00
parent 56cf3f2f55
commit fc08c60230
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,6 @@ class BaseTirage(yaml.YAMLObject):
for t in collisions:
dices[t] = None
collisions = []
while None in dices.values():
event = await self.next(int)
@ -176,8 +175,10 @@ class BaseTirage(yaml.YAMLObject):
else:
await self.warn_twice(int)
collisions = [t for t in teams if list(dices.values()).count(dices[t]) > 1]
if collisions:
await self.warn_colisions(collisions)
return dices
async def make_poules(self):