summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-01 21:30:15 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-02 08:22:06 +0000
commitcba31c4958fb137fe45bad52d1965038022b35ea (patch)
tree02d41bf3e21e1b5c2de5357ca29a821eb14052b3
parentdca4c68dd6987769fa98a0425a389eac336df434 (diff)
download1989-dawn-of-freedom-cba31c4958fb137fe45bad52d1965038022b35ea.tar.gz
Fix the Tyrant is gone
-rw-r--r--rules.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 142002f..56e31cb 100644
--- a/rules.js
+++ b/rules.js
@@ -585,7 +585,6 @@ states.play_card ={
return `play ${clean_name(cards[game.played_card].name)}.`
},
prompt () {
- console.log('game.playable_cards', game.playable_cards)
view.prompt = `Play ${clean_name(cards[game.played_card].name)} for:`
if (scoring_cards.includes(game.played_card)) {
@@ -3652,14 +3651,14 @@ function reset_power() {
}
function check_tyrant() {
- if (game.the_tyrant_is_gone > 0 && check_dem_control(game.the_tyrant_is_gone)) {
+ if (game.the_tyrant_is_gone > 0 && game.the_tyrant_is_gone !== 111 && check_dem_control(game.the_tyrant_is_gone)) {
log('+2 VP from C97')
game.vp += 2
if (check_vp()) {
return
}
game.persistent_events = game.persistent_events.filter(n => n !== C_THE_TYRANT_IS_GONE)
- delete game.the_tyrant_is_gone
+ game.the_tyrant_is_gone = 111
}
}