mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
tweaking usage of getTotalPower to include new Boolean
This commit is contained in:
@@ -1187,8 +1187,10 @@ 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")) {
|
||||
@@ -1247,7 +1249,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
|
||||
inp.setCancelAllowed(true);
|
||||
inp.showAndWait();
|
||||
|
||||
if (inp.hasCancelled() || CardLists.getTotalPower(inp.getSelected(), true) < i) {
|
||||
if (inp.hasCancelled() || CardLists.getTotalPower(inp.getSelected(), true, isCrew) < i) {
|
||||
return null;
|
||||
}
|
||||
return PaymentDecision.card(inp.getSelected());
|
||||
|
||||
Reference in New Issue
Block a user