mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 06:51:34 +01:00
fix causally (dis-)connected if
This commit is contained in:
@@ -129,9 +129,8 @@ class EventSeries():
|
|||||||
self.teamA += [playerInRound]
|
self.teamA += [playerInRound]
|
||||||
else:
|
else:
|
||||||
self.teamB += [playerInRound]
|
self.teamB += [playerInRound]
|
||||||
|
|
||||||
## Case 2: Player is in the wrong team
|
## Case 2: Player is in the wrong team
|
||||||
if playerInRound not in self._teamFromId(playerInRound.team):
|
elif playerInRound not in self._teamFromId(playerInRound.team):
|
||||||
index = self._teamFromId(playerInRound.team, inverted=True).index(playerInRound)
|
index = self._teamFromId(playerInRound.team, inverted=True).index(playerInRound)
|
||||||
playerInEventSeries = self._teamFromId(playerInRound.team, inverted=True)[index]
|
playerInEventSeries = self._teamFromId(playerInRound.team, inverted=True)[index]
|
||||||
|
|
||||||
@@ -145,7 +144,6 @@ class EventSeries():
|
|||||||
self.teamA += [playerInRound]
|
self.teamA += [playerInRound]
|
||||||
else:
|
else:
|
||||||
self.teamB += [playerInRound]
|
self.teamB += [playerInRound]
|
||||||
|
|
||||||
## Case 3: Player is already in the correct team
|
## Case 3: Player is already in the correct team
|
||||||
else:
|
else:
|
||||||
index = self._teamFromId(playerInRound.team).index(playerInRound)
|
index = self._teamFromId(playerInRound.team).index(playerInRound)
|
||||||
|
|||||||
Reference in New Issue
Block a user