clean up cost tweaks

This commit is contained in:
Northmoc
2021-02-01 08:11:20 -05:00
parent 0e9f24cafd
commit f72f49def4
2 changed files with 2 additions and 6 deletions

View File

@@ -1187,10 +1187,8 @@ public class HumanCostDecision extends CostDecisionMakerBase {
source, ability);
typeList = CardLists.filter(typeList, Presets.UNTAPPED);
boolean isCrew=false;
if (ability.hasParam("Crew")) {
typeList = CardLists.getNotKeyword(typeList, "CARDNAME can't crew Vehicles.");
isCrew=true;
}
if (c == null && !amount.equals("Any")) {
@@ -1249,7 +1247,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
inp.setCancelAllowed(true);
inp.showAndWait();
if (inp.hasCancelled() || CardLists.getTotalPower(inp.getSelected(), true, isCrew) < i) {
if (inp.hasCancelled() || CardLists.getTotalPower(inp.getSelected(), true, ability.hasParam("Crew")) < i) {
return null;
}
return PaymentDecision.card(inp.getSelected());