From e838a1a58d309a367e085cee627c30fe8d8b09b1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 17 Jan 2023 11:03:02 +0000 Subject: Fix typo in castle flipping. --- rules.js | 8 ++++---- 1 file 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) } } -- cgit v1.2.3