From a0fdf022809a3b25374ea1c4aa5999678a1fb2bb Mon Sep 17 00:00:00 2001 From: Sol Date: Thu, 3 Apr 2014 02:00:39 +0000 Subject: [PATCH] - Fixed Night Soil from needing X-2 cards to remove instead of 2. --- .../src/main/java/forge/gui/player/HumanCostDecision.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forge-gui/src/main/java/forge/gui/player/HumanCostDecision.java b/forge-gui/src/main/java/forge/gui/player/HumanCostDecision.java index 9ccd9081357..80e27a5c4d5 100644 --- a/forge-gui/src/main/java/forge/gui/player/HumanCostDecision.java +++ b/forge-gui/src/main/java/forge/gui/player/HumanCostDecision.java @@ -296,10 +296,11 @@ public class HumanCostDecision extends CostDecisionMakerBase { } List typeList = CardLists.filter(list, CardPredicates.isOwner(p)); - if(typeList.size() < nNeeded) + int count = typeList.size(); + if(count < nNeeded) return null; - List toExile = GuiChoose.many("Exile from " + cost.getFrom(), "To be exiled", nNeeded, typeList, null); + List toExile = GuiChoose.many("Exile from " + cost.getFrom(), "To be exiled", count - nNeeded, typeList, null); return PaymentDecision.card(toExile); }