From 387aaf2300856d45317573a2e4612f22d63ffae3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 18 Jan 2022 00:31:09 +0100 Subject: Fix plague if it's the lower valued of two events... --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 2ba78e6..bf1d8e1 100644 --- a/rules.js +++ b/rules.js @@ -1536,7 +1536,7 @@ states.plague_event = { for (let b in BLOCKS) if (game.location[b] === where) game.plague.push(b); - game.active = game.p2; + game.active = ENEMY[game.active]; game.state = 'apply_plague'; }, pass: function () { @@ -1557,7 +1557,7 @@ states.apply_plague = { remove_from_array(game.plague, b); if (game.plague.length === 0) { delete game.plague; - game.active = game.p1; + game.active = ENEMY[game.active]; end_player_turn(); } }, -- cgit v1.2.3