diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-17 11:03:02 +0000 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | e838a1a58d309a367e085cee627c30fe8d8b09b1 (patch) | |
tree | aba86e9c2687abc493973bc3c9aed1c87d08710a /rules.js | |
parent | d1b92933f8b4ffcb4b9755075bb185fa351c0298 (diff) | |
download | nevsky-e838a1a58d309a367e085cee627c30fe8d8b09b1.tar.gz |
Fix typo in castle flipping.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) } } |