From cfdba0c522f460df3d97580ec2900fef80af9f77 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 1 Oct 2021 14:58:00 +0200 Subject: 300: Fix scoring and resetting of Acropolis on Fire. --- rules.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 9c87b95..14f3e63 100644 --- a/rules.js +++ b/rules.js @@ -488,6 +488,8 @@ function gen_greek_land_movement(view) { // DEATH OF A KING function goto_sudden_death_of_darius(skip_scoring) { + if (skip_scoring) + game.trigger.acropolis_on_fire = 0; game.skip_scoring = skip_scoring; game.trigger.darius = 1; log("Sudden Death of Darius!"); @@ -529,6 +531,8 @@ states.sudden_death_of_darius = { } function goto_assassination_of_xerxes(skip_scoring) { + if (skip_scoring) + game.trigger.acropolis_on_fire = 0; game.skip_scoring = skip_scoring; game.trigger.xerxes = 1; log("Assassination of Xerxes!"); @@ -2938,7 +2942,7 @@ function play_artemisia() { game.trigger.artemisia = 1; remove_persian_fleet(game.where); - if (game.attacker == PERSIA) { + if (game.attacker === PERSIA) { if (count_persian_fleets(game.where) < game.transport) { log("Persia loses one fleet and one army."); move_persian_army(game.where, RESERVE); @@ -3209,6 +3213,8 @@ function goto_scoring_phase() { let greek_vp = 0; let persian_vp = 0; for (let city of CITIES) { + if (city === ATHENAI && game.trigger.acropolis_on_fire) + continue; if (is_greek_control(city)) greek_vp += SCORE[city]; if (is_persian_control(city)) -- cgit v1.2.3