diff options
-rw-r--r-- | rules.js | 3 | ||||
-rw-r--r-- | rules.ts | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -1075,7 +1075,8 @@ states.choose_medallion = { gen_spend_hero_points(); view.prompt = 'Earn a Medallion.'; for (let m of game.medallions[POOL_ID]) { - gen_action_medallion(m); + if (m !== null) + gen_action_medallion(m); } if (!game.medallions[POOL_ID].some((m) => m !== null)) { gen_action('skip'); @@ -1360,7 +1360,8 @@ states.choose_medallion = { gen_spend_hero_points(); view.prompt = 'Earn a Medallion.'; for (let m of game.medallions[POOL_ID]) { - gen_action_medallion(m); + if (m !== null) + gen_action_medallion(m); } if (!game.medallions[POOL_ID].some((m) => m !== null)) { gen_action('skip'); |