From fdade2352a6ce4cf554556dccabfb5d84a8d476d Mon Sep 17 00:00:00 2001 From: Thomas Luong Date: Wed, 30 Jun 2021 15:05:11 -0700 Subject: [PATCH] PEONIA_149 limit max selection to 3 --- src/tcgwars/logic/impl/gen8/ChillingReign.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tcgwars/logic/impl/gen8/ChillingReign.groovy b/src/tcgwars/logic/impl/gen8/ChillingReign.groovy index e0af1a6e2..069563827 100644 --- a/src/tcgwars/logic/impl/gen8/ChillingReign.groovy +++ b/src/tcgwars/logic/impl/gen8/ChillingReign.groovy @@ -3493,8 +3493,8 @@ public enum ChillingReign implements LogicCardInfo { return supporter (this) { text "Choose up to 3 of your Prize cards and put them into your hand. Then, place the same number of cards from your hand face-down as Prize cards. You may play only 1 Supporter card during your turn." onPlay { - def maxPrizes = Math.min(3, my.prizeCardSet.size()) - maxPrizes = Math.max(maxPrizes, my.hand.size()) + def maxPrizes = Math.max(my.prizeCardSet.size(), my.hand.size()) + maxPrizes = Math.min(3, maxPrizes) def prizes = my.prizeCardSet.select(min: 1, max: maxPrizes, hidden:true, "Choose up to $maxPrizes prize cards to move to your hand") prizes.moveTo(hidden: true, my.hand)