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]
|
||||
else:
|
||||
self.teamB += [playerInRound]
|
||||
|
||||
## 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)
|
||||
playerInEventSeries = self._teamFromId(playerInRound.team, inverted=True)[index]
|
||||
|
||||
@@ -145,7 +144,6 @@ class EventSeries():
|
||||
self.teamA += [playerInRound]
|
||||
else:
|
||||
self.teamB += [playerInRound]
|
||||
|
||||
## Case 3: Player is already in the correct team
|
||||
else:
|
||||
index = self._teamFromId(playerInRound.team).index(playerInRound)
|
||||
|
||||
Reference in New Issue
Block a user