From 7219d51d45b065a9cd9d9dcec7f7459cd5e3317a Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 20 Sep 2024 17:07:32 +0100 Subject: Fix for Shock Therapy country --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index eadc9a5..5d8982c 100644 --- a/rules.js +++ b/rules.js @@ -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++ } } -- cgit v1.2.3