summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-21 23:59:04 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commit7eebbf33f8e84cc6ca468cfe1aa23297100f0bfe (patch)
treeebcf54bbd124ab3d7f86e13c80be7f41d4d0ba07 /rules.js
parentfd8e3e00747d24fbd583f92f5c7a3504427898d6 (diff)
downloadjulius-caesar-7eebbf33f8e84cc6ca468cfe1aa23297100f0bfe.tar.gz
caesar: Log when Apollo copies a card.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 7e3ce60..54e33a4 100644
--- a/rules.js
+++ b/rules.js
@@ -896,10 +896,14 @@ function reveal_cards() {
return;
}
- if (game.c_card == APOLLO)
+ if (game.c_card == APOLLO) {
game.c_card = game.prior_p_card;
- if (game.p_card == APOLLO)
+ log("Apollo copies " + CARDS[game.c_card].name + ".");
+ }
+ if (game.p_card == APOLLO) {
game.p_card = game.prior_c_card;
+ log("Apollo copies " + CARDS[game.p_card].name + ".");
+ }
game.prior_c_card = game.c_card;
game.prior_p_card = game.p_card;