summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-29 17:35:25 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-29 17:35:25 +0000
commitd282ff258ccce2afc54ae9ed2ef3624a0952b045 (patch)
tree60205c16ceb708cc37375d48a680cd7522c256fd
parent17b3b412c6300ce5458d46acd4757b05403287fc (diff)
download1989-dawn-of-freedom-d282ff258ccce2afc54ae9ed2ef3624a0952b045.tar.gz
Fix fuzzer with TST Award 3
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index a878ffd..b372d90 100644
--- a/rules.js
+++ b/rules.js
@@ -3404,7 +3404,6 @@ function event_is_playable(card) {
}
// Then check normally
else if (game.playable_cards.includes(card)) {
- console.log('in playable cards', game.playable_cards)
return true
} else if (cards[card].playable) {
return true
@@ -4091,7 +4090,7 @@ function check_systematization() {
if (game.systematization > 0) {
game.valid_spaces = game.valid_spaces.filter(n => n !== game.systematization)
}
-}
+}
function this_card() {
return game.vm_event > 0 ? game.vm_event : game.played_card
@@ -7948,10 +7947,14 @@ states.vm_tst_3 = {
gen_action_card(card)
}
}
+ console.log('game.valid_cards', game.valid_cards)
},
card(card) {
push_undo()
discard(card)
+ console.log('card', card,'game.valid_cards', game.valid_cards)
+ game.valid_cards.splice(game.valid_cards.indexOf(card), 1)
+ console.log('game.valid_cards', game.valid_cards)
game.temp ++
if (game.temp === 2) {
game.valid_cards = []