From 80ad22cbb65782306c915af30597e6c39920c591 Mon Sep 17 00:00:00 2001 From: Thayol Date: Thu, 24 Jun 2021 00:38:37 +0200 Subject: [PATCH] Fix minimum points application --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 5ba0bf9..61695e1 100644 --- a/script.js +++ b/script.js @@ -373,7 +373,7 @@ function getPatterns(thisHand = null, thisMinimumPoints = null) { let points = Object.values(patterns).map(pattern => pattern.points); let maxPoints = Math.max(...points); - if (maxPoints < minimumPoints) { + if (maxPoints < thisMinimumPoints) { return []; }