mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- A more appropriate location for the num of targets test in HumanCostDecision (Tap).
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user