diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 17:07:32 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 17:07:32 +0100 |
commit | 7219d51d45b065a9cd9d9dcec7f7459cd5e3317a (patch) | |
tree | 563a7282d53956ed9d68a8a0cddec990f902b785 | |
parent | 31f9a93d2b8c05c90b994395ced4db1d1db819d3 (diff) | |
download | 1989-dawn-of-freedom-7219d51d45b065a9cd9d9dcec7f7459cd5e3317a.tar.gz |
Fix for Shock Therapy country
-rw-r--r-- | rules.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6643,7 +6643,8 @@ states.vm_shock_therapy = { log(`Rolled a ${roll}`)
console.log('game.pieces', game.pieces)
for (let space of game.pieces) {
- if (space && space.country === game.vm_active_country && space.comCtrl === 1 && (space.socio === 3 || space.socio === 4)) {
+
+ if (space && spaces[space.space_id].country === game.vm_active_country && space.comCtrl === 1 && (space.socio === 3 || space.socio === 4)) {
game.temp++
}
}
|