Ghost match fix
This commit is contained in:
@@ -197,8 +197,8 @@ class BracketGenerator:
|
||||
loser = None # Ghost
|
||||
|
||||
if p1_is_ghost and p2_is_ghost:
|
||||
winner = None
|
||||
loser = None
|
||||
winner = p1
|
||||
loser = p2
|
||||
elif p1_is_ghost:
|
||||
winner = p2
|
||||
loser = p1
|
||||
@@ -211,8 +211,5 @@ class BracketGenerator:
|
||||
m.next_win.teams[m.next_win_slot] = winner
|
||||
|
||||
# Propagate Loser (Drop to LB)
|
||||
# Important: We push the GHOST to the LB.
|
||||
# When the loop reaches that LB match later, it will see the ghost
|
||||
# and mark THAT match as a bye too, recursively cleaning the bracket.
|
||||
if m.next_loss:
|
||||
m.next_loss.teams[m.next_loss_slot] = loser
|
||||
|
||||
Reference in New Issue
Block a user