Compare commits

..

1 commit

Author SHA1 Message Date
Johannes Loher 95a595773d
fix: correctly calculate tick value when stopping to wait
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
ci/woodpecker/push/checks Pipeline was successful
ci/woodpecker/manual/checks Pipeline was successful
ci/woodpecker/manual/release Pipeline was successful
2023-07-10 02:17:05 +02:00

View file

@ -36,7 +36,7 @@ const getTiebreaker = async (combatant, combatants, waiting) => {
}
equals.sort();
const positionAmongEquals = waiting === false ? equals.length : Math.floor(twist.random() * (equals.length + 1));
const positionAmongEquals = Math.floor(twist.random() * (equals.length + 1));
equals.forEach((equal, index) => {
if (index < positionAmongEquals) {