Ghost match fix
This commit is contained in:
@@ -197,8 +197,8 @@ class BracketGenerator:
|
|||||||
loser = None # Ghost
|
loser = None # Ghost
|
||||||
|
|
||||||
if p1_is_ghost and p2_is_ghost:
|
if p1_is_ghost and p2_is_ghost:
|
||||||
winner = None
|
winner = p1
|
||||||
loser = None
|
loser = p2
|
||||||
elif p1_is_ghost:
|
elif p1_is_ghost:
|
||||||
winner = p2
|
winner = p2
|
||||||
loser = p1
|
loser = p1
|
||||||
@@ -211,8 +211,5 @@ class BracketGenerator:
|
|||||||
m.next_win.teams[m.next_win_slot] = winner
|
m.next_win.teams[m.next_win_slot] = winner
|
||||||
|
|
||||||
# Propagate Loser (Drop to LB)
|
# 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:
|
if m.next_loss:
|
||||||
m.next_loss.teams[m.next_loss_slot] = loser
|
m.next_loss.teams[m.next_loss_slot] = loser
|
||||||
|
|||||||
Reference in New Issue
Block a user