diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -7596,8 +7596,8 @@ states.vm_workers_revolt_finish = { return `resolve ${cards[game.played_card].name}.`
},
prompt() {
- if (game.temp > 0) {
- view.prompt = `Target: ${spaces[game.temp].name}. Roll a die.`
+ if (game.selected_space > 0) {
+ view.prompt = `Target: ${spaces[game.selected_space].name}. Roll a die.`
gen_action('roll')
} else {
view.prompt = 'Workers Revolt: done.'
@@ -7609,7 +7609,7 @@ states.vm_workers_revolt_finish = { clear_undo()
let roll = Math.floor(Math.random() * 6) + 1
log(`Rolled a ${roll}`)
- let adj = count_adj(spaces[game.temp].name_unique)
+ let adj = count_adj(spaces[game.selected].name_unique)
if (game.active === DEM) {
log(`-${adj.com_adj} from opponent controlled spaces`)
roll -= adj.com_adj
@@ -7621,7 +7621,7 @@ states.vm_workers_revolt_finish = { log('Workers Revolt successful')
vm_replace_all_infl(game.temp)
} else {log('Workers Revolt fails')}
- game.temp = 0
+ game.selected_space = 0
},
done() {
vm_next()
|