summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
}