From 084c4ed7f970d00af4349a01cba5093cef5e2ca2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 Aug 2024 15:39:31 +0200 Subject: v2: military emperor --- rules.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 1f9a68c..57ec240 100644 --- a/rules.js +++ b/rules.js @@ -4734,8 +4734,18 @@ function goto_post_combat() { function roll_military_emperor_check(n) { if (n > 0) { log_h3("Military Emperor") - if (roll_dice_no_reroll(n, 5) > 0) - eliminate_military_emperor(game.emperor - ARMY) + if (is_classic()) { + if (roll_dice_no_reroll(n, 5) > 0) + eliminate_military_emperor(game.emperor - ARMY) + } else { + let die = roll_die() + if (die + n >= 7) { + logi("B" + die + " + " + n + " \u2265 7") + eliminate_military_emperor(game.emperor - ARMY) + } else { + logi("W" + die + " + " + n + " < 7") + } + } } } -- cgit v1.2.3