Skip to content

Commit

Permalink
chore(rushroyale): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Dec 15, 2024
1 parent 8c28a99 commit db2c41d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/views/mp/rushroyale.html
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,8 @@
},
});

// we must overwrite the onScore callback AFTER the Competition is instantiated, to take it over
// actually TODO then: is the Competition instance even needed in this knock out format?
players.forEach(player => {
player.onScore = () => {
if (endingCycle) return; // discard "fake" score update from death
Expand Down

0 comments on commit db2c41d

Please sign in to comment.