- Fixed Night Soil from needing X-2 cards to remove instead of 2.

This commit is contained in:
Sol
2014-04-03 02:00:39 +00:00
parent 0de3d58651
commit a0fdf02280

View File

@@ -296,10 +296,11 @@ public class HumanCostDecision extends CostDecisionMakerBase {
}
List<Card> typeList = CardLists.filter(list, CardPredicates.isOwner(p));
if(typeList.size() < nNeeded)
int count = typeList.size();
if(count < nNeeded)
return null;
List<Card> toExile = GuiChoose.many("Exile from " + cost.getFrom(), "To be exiled", nNeeded, typeList, null);
List<Card> toExile = GuiChoose.many("Exile from " + cost.getFrom(), "To be exiled", count - nNeeded, typeList, null);
return PaymentDecision.card(toExile);
}