Commit 87cff533 authored by nanahira's avatar nanahira

fix

parent 58ac7fe6
......@@ -147,7 +147,8 @@ function getMedianCode(cards: Card[]) {
if (len % 2 === 0) {
return Math.floor((sortedCards[len / 2 - 1].id + sortedCards[len / 2].id) / 2);
} else {
return sortedCards[(len + 1) / 2 - 1].id;
const targetSequence = (len + 1) / 2;
return Math.floor((sortedCards[targetSequence - 1].id + sortedCards[targetSequence].id) / 2);
}
}
......
......@@ -4,8 +4,8 @@ noFilterAlias: false
where:
- "type & {TYPE_MONSTER} > 0"
mayIncorrectStatements:
- incorrectCountMin: 3
incorrectCountMax: 3
- incorrectCountMin: 0
incorrectCountMax: 4
where:
- "type & {TYPE_FUSION} = 0"
- "type & {TYPE_SYNCHRO} > 0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment