Allow cancelling ability of Nullmage Shephard while in the process of selecting creatures to tap

This commit is contained in:
drdev
2014-10-14 18:44:49 +00:00
parent b73594a530
commit aeb710d764

View File

@@ -653,9 +653,9 @@ public class HumanCostDecision extends CostDecisionMakerBase {
inp.setCancelAllowed(true); inp.setCancelAllowed(true);
inp.showAndWait(); inp.showAndWait();
if (inp.hasCancelled()) if (inp.hasCancelled()) {
return null; return null;
}
return PaymentDecision.card(inp.getSelected()); return PaymentDecision.card(inp.getSelected());
} }
@@ -1090,6 +1090,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
} }
InputSelectCardsFromList inp = new InputSelectCardsFromList(controller, c, c, typeList); InputSelectCardsFromList inp = new InputSelectCardsFromList(controller, c, c, typeList);
inp.setCancelAllowed(true);
inp.setMessage("Select a " + cost.getDescriptiveType() + " to tap (%d left)"); inp.setMessage("Select a " + cost.getDescriptiveType() + " to tap (%d left)");
inp.showAndWait(); inp.showAndWait();
if (inp.hasCancelled()) { if (inp.hasCancelled()) {