From 2dcc1f605663d92ecf805d17be0f41929b20dd81 Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Wed, 11 Sep 2024 21:55:20 -0500 Subject: [PATCH] Fixed To Highest Peak failing if there are no moria minions to discard. --- .../pc/setV02/setv02-Moria-playtest.hjson | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/setV02/setv02-Moria-playtest.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/setV02/setv02-Moria-playtest.hjson index e593b1f3a..13f0d9e7f 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/setV02/setv02-Moria-playtest.hjson +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/setV02/setv02-Moria-playtest.hjson @@ -190,15 +190,15 @@ type: event cost: [ { - type: ChooseANumber - text: Choose how many {moria} minions to discard - from: 1 - to: { - type: ForEachYouCanSpot - filter: culture(moria), minion - } - memorize: discardedMinions + type: ChooseANumber + text: Choose how many {moria} minions to discard + from: 0 + to: { + type: ForEachYouCanSpot + filter: culture(moria), minion } + memorize: discardedMinions + } { type: Discard select: choose(culture(Moria), minion) @@ -206,19 +206,28 @@ } ] effect: { - type: Preventable - text: Would you like to exert {discardedMinions} companions to prevent adding {discardedMinions} threats? - player: freeps - cost: { - type: Exert - select: choose(companion) - count: memory(discardedMinions) + type: If + check: { + type: IsGreaterThan + firstNumber: memory(discardedMinions) + secondNumber: 0 } - effect: { - type: AddThreats - amount: memory(discardedMinions) + true: { + type: Preventable + text: Would you like to exert {discardedMinions} companions to prevent adding {discardedMinions} threats? + player: freeps + cost: { + type: Exert + select: choose(companion) + count: memory(discardedMinions) + } + effect: { + type: AddThreats + amount: memory(discardedMinions) + } } } + } gametext: Discard X [Moria] minions to add X threats. The Free Peoples player may exert X companions to prevent this. lore: "'There was none to see, or perhaps in after ages songs would still be sung of the Battle of the Peak.'"