summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-21 11:11:24 +0000
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit7db61f7d9ab6568b4ab141be2ac6d583a94159ef (patch)
tree66ee796b14e7d76e285d27a24572f4003681716f
parentb19499cc5f6483062a28dc7a0c52e4b61c74f796 (diff)
downloadshores-of-tripoli-7db61f7d9ab6568b4ab141be2ac6d583a94159ef.tar.gz
tripoli: Fix bug in you_may_play.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 009760c..184f8d1 100644
--- a/rules.js
+++ b/rules.js
@@ -312,7 +312,7 @@ function you_may_play(current, list) {
else {
for (let i = 0; i < list.length-1; ++i)
msg += list[i] + ", ";
- msg += "or " + list[i] + ".";
+ msg += "or " + list[list.length-1] + ".";
}
} else {
msg += "\u201c" + CARD_NAMES[list] + "\u201d.";