- A more appropriate location for the num of targets test in HumanCostDecision (Tap).

This commit is contained in:
Agetian
2015-10-04 14:11:28 +00:00
parent 1cdc56d727
commit 7884644a4f

View File

@@ -1156,10 +1156,11 @@ public class HumanCostDecision extends CostDecisionMakerBase {
return PaymentDecision.card(inp.getSelected());
}
final InputSelectCardsFromList inp = new InputSelectCardsFromList(controller, c, c, typeList);
if (c > typeList.size()) {
return null; // not enough targets anymore (e.g. Crackleburr + Smokebraider tapped to get mana)
}
final InputSelectCardsFromList inp = new InputSelectCardsFromList(controller, c, c, typeList);
inp.setCancelAllowed(true);
inp.setMessage("Select a " + cost.getDescriptiveType() + " to tap (%d left)");
inp.showAndWait();