summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-18 00:31:09 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit387aaf2300856d45317573a2e4612f22d63ffae3 (patch)
treee2f731a7729cada748d86e3102810d99eb0c2565
parent0cc48e6f18fc4b069c34b62d73f1d9bbb687f5f9 (diff)
downloadrichard-iii-387aaf2300856d45317573a2e4612f22d63ffae3.tar.gz
Fix plague if it's the lower valued of two events...
-rw-r--r--rules.js4
1 files 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();
}
},