diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-21 23:59:04 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:08:56 +0100 |
commit | 7eebbf33f8e84cc6ca468cfe1aa23297100f0bfe (patch) | |
tree | ebcf54bbd124ab3d7f86e13c80be7f41d4d0ba07 /rules.js | |
parent | fd8e3e00747d24fbd583f92f5c7a3504427898d6 (diff) | |
download | julius-caesar-7eebbf33f8e84cc6ca468cfe1aa23297100f0bfe.tar.gz |
caesar: Log when Apollo copies a card.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |