From 7eebbf33f8e84cc6ca468cfe1aa23297100f0bfe Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Jun 2021 23:59:04 +0200 Subject: caesar: Log when Apollo copies a card. --- rules.js | 8 ++++++-- 1 file 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; -- cgit v1.2.3