diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-04 23:16:49 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-04 23:16:49 +0000 |
commit | cecd7a8c88d50505ba67e15a017d0f0ea3b70de8 (patch) | |
tree | 9e072134bbfc399fa18e80877a11d96f218c08e1 | |
parent | e9cdc5e455fd2481895b9c03fef5d4e1f1c592a9 (diff) | |
download | 1989-dawn-of-freedom-cecd7a8c88d50505ba67e15a017d0f0ea3b70de8.tar.gz |
Fix autoresolve for Kiss of Death
-rw-r--r-- | rules.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -479,6 +479,7 @@ exports.view = function (state, player) { } } return view + console.log('view', view) } // === ACTIONS =========== @@ -4746,14 +4747,12 @@ function vm_return() { vm_end_event() } // Check if auto-resolve opponent event (excluding Kiss of Death) - else if (game.played_card !== C_KISS_OF_DEATH) { - if (is_auto_resolve(game.played_card) && + else if ((is_auto_resolve(game.played_card) && game.played_card !== C_KISS_OF_DEATH ) && ((cards[game.played_card].side === 'C' && game.active === DEM) || (cards[game.played_card].side === 'D' && game.active === COM)) ) { vm_end_event() - } - } else { + } else { game.state = 'vm_end_event' } } |