Ghost match fix

This commit is contained in:
2026-02-22 22:24:10 +01:00 Verified
parent a2d76f2b7a
commit b152f6fd85
+2 -5
View File
@@ -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