From ab72f6d38ccea89fef2ab0ce2863c6da60255917 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 a993763..ef64708 100644 --- a/rules.js +++ b/rules.js @@ -4736,8 +4736,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