🐛 fix dice collisions
This commit is contained in:
parent
135724e87d
commit
357b396a70
|
@ -163,7 +163,6 @@ class BaseTirage(yaml.YAMLObject):
|
||||||
|
|
||||||
for t in collisions:
|
for t in collisions:
|
||||||
dices[t] = None
|
dices[t] = None
|
||||||
collisions = []
|
|
||||||
|
|
||||||
while None in dices.values():
|
while None in dices.values():
|
||||||
event = await self.next(int)
|
event = await self.next(int)
|
||||||
|
@ -176,8 +175,10 @@ class BaseTirage(yaml.YAMLObject):
|
||||||
else:
|
else:
|
||||||
await self.warn_twice(int)
|
await self.warn_twice(int)
|
||||||
|
|
||||||
|
collisions = [t for t in teams if list(dices.values()).count(dices[t]) > 1]
|
||||||
if collisions:
|
if collisions:
|
||||||
await self.warn_colisions(collisions)
|
await self.warn_colisions(collisions)
|
||||||
|
|
||||||
return dices
|
return dices
|
||||||
|
|
||||||
async def make_poules(self):
|
async def make_poules(self):
|
||||||
|
|
Loading…
Reference in New Issue