summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:53:11 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:53:11 +0100
commitd9f1ad83080733e0d2b39b6148b6d439bdf25b99 (patch)
treec7d4782e1074063b7000e617c53312fbdbca6352
parent1f4ef604a74b6ded11e5aab8bce5180d2689651b (diff)
download1989-dawn-of-freedom-d9f1ad83080733e0d2b39b6148b6d439bdf25b99.tar.gz
Fix Take Power in VM
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 48af26f..6f1d5e0 100644
--- a/rules.js
+++ b/rules.js
@@ -1502,7 +1502,9 @@ states.vp_roll = {
},
take () {
push_undo()
- permanently_remove(game.played_card)
+ //Find name of scoring card
+ let scoring_card = scoring_cards[countries.indexOf(game.pwr_struggle_in)]
+ permanently_remove(scoring_card)
take_power(game.pwr_struggle_in)
game.phase = 2
},