summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-17 11:03:02 +0000
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commite838a1a58d309a367e085cee627c30fe8d8b09b1 (patch)
treeaba86e9c2687abc493973bc3c9aed1c87d08710a
parentd1b92933f8b4ffcb4b9755075bb185fa351c0298 (diff)
downloadnevsky-e838a1a58d309a367e085cee627c30fe8d8b09b1.tar.gz
Fix typo in castle flipping.
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index b553534..68f537b 100644
--- a/rules.js
+++ b/rules.js
@@ -1241,11 +1241,11 @@ function has_castle_marker(loc) {
function flip_castle(loc) {
if (game.active === P1) {
- set_delete(game.pieces.castle2, loc)
- set_add(game.pieces.castle1, loc)
+ set_delete(game.pieces.castles2, loc)
+ set_add(game.pieces.castles1, loc)
} else {
- set_delete(game.pieces.castle1, loc)
- set_add(game.pieces.castle2, loc)
+ set_delete(game.pieces.castles1, loc)
+ set_add(game.pieces.castles2, loc)
}
}