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); }