MCPcopy Create free account
hub / github.com/Card-Forge/forge / canPay

Method canPay

forge-game/src/main/java/forge/game/cost/Cost.java:1075–1083  ·  view source on GitHub ↗
(SpellAbility sa, Player payer, final boolean effect)

Source from the content-addressed store, hash-verified

1073 }
1074
1075 public boolean canPay(SpellAbility sa, Player payer, final boolean effect) {
1076 for (final CostPart part : this.getCostParts()) {
1077 if (!part.canPay(sa, payer, effect)) {
1078 return false;
1079 }
1080 }
1081
1082 return true;
1083 }
1084
1085 public boolean hasXInAnyCostPart() {
1086 boolean xCost = false;

Callers 5

resolveMethod · 0.95
canPayAdditionalCostsMethod · 0.45
visitMethod · 0.45
visitMethod · 0.45

Calls 1

getCostPartsMethod · 0.95

Tested by

no test coverage detected