Compare commits
1 commit
4582e8dd6f
...
95a595773d
Author | SHA1 | Date | |
---|---|---|---|
|
95a595773d |
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue