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

Method canPay

forge-game/src/main/java/forge/game/cost/CostUntap.java:79–84  ·  view source on GitHub ↗
(final SpellAbility ability, final Player payer, final boolean effect)

Source from the content-addressed store, hash-verified

77 }
78
79 @Override
80 public final boolean canPay(final SpellAbility ability, final Player payer, final boolean effect) {
81 final Card source = ability.getHostCard();
82 return source.canUntap(null, false) && !source.isAbilitySick() &&
83 (source.getCounters(CounterEnumType.STUN) == 0 || source.canRemoveCounters(CounterEnumType.STUN));
84 }
85
86 @Override
87 public boolean payAsDecided(Player ai, PaymentDecision decision, SpellAbility ability, final boolean effect) {

Callers

nothing calls this directly

Calls 5

canUntapMethod · 0.95
isAbilitySickMethod · 0.95
canRemoveCountersMethod · 0.95
getHostCardMethod · 0.65
getCountersMethod · 0.45

Tested by

no test coverage detected