mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed Night Soil from needing X-2 cards to remove instead of 2.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user