- Fixed ExiledMoveToGrave cost for optional triggers.

- Fixed script of Ulamog's Reclaimer.
This commit is contained in:
Sloth
2015-09-25 17:56:46 +00:00
parent 7bb70d6491
commit ada0948fb3
3 changed files with 11 additions and 4 deletions

View File

@@ -453,7 +453,15 @@ public class HumanCostDecision extends CostDecisionMakerBase {
if (list.size() < c) {
return null;
}
final CardCollection choice = controller.getGame().getCardList(controller.getGui().many("Choose an exiled card to put into graveyard", "To graveyard", c, CardView.getCollection(list), CardView.get(source)));
Integer min = c;
if (ability.isOptionalTrigger()) {
min = 0;
}
final CardCollection choice = controller.getGame().getCardList(controller.getGui().many("Choose an exiled card to put into graveyard", "To graveyard", min, c, CardView.getCollection(list), CardView.get(source)));
if (choice == null || choice.size() < c) {
return null;
}
return PaymentDecision.card(choice);
}