summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index f28a1ce..0b08133 100644
--- a/rules.js
+++ b/rules.js
@@ -1483,6 +1483,7 @@ states.vp_roll = {
}
},
roll () {
+ push_undo()
let roll = Math.floor(Math.random() * 6) + 1
log(`Rolled a ${roll}`)
let rally_win = 0
@@ -1516,8 +1517,10 @@ states.vp_roll = {
log(`-${vp_change} VP`)
}
if (roll >= 4)
+ console.log('VP before', game.vp)
if (game.active === DEM) {game.vp += vp_change}
else {game.vp -= vp_change}
+ console.log('VP after', game.vp)
if (game.active === DEM && modified_roll >= 4) {
game.phase = 1
} else {