Compare commits
1 commit
4582e8dd6f
...
95a595773d
Author | SHA1 | Date | |
---|---|---|---|
95a595773d |
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ const getTiebreaker = async (combatant, combatants, waiting) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
equals.sort();
|
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) => {
|
equals.forEach((equal, index) => {
|
||||||
if (index < positionAmongEquals) {
|
if (index < positionAmongEquals) {
|
||||||
|
|
Loading…
Reference in a new issue