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

Method canPay

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

Source from the content-addressed store, hash-verified

64 }
65
66 @Override
67 public final boolean canPay(final SpellAbility ability, final Player payer, final boolean effect) {
68 final Card source = ability.getHostCard();
69 return source.canTap() && !source.isAbilitySick();
70 }
71
72 @Override
73 public boolean payAsDecided(Player payer, PaymentDecision decision, SpellAbility ability, final boolean effect) {

Callers

nothing calls this directly

Calls 3

canTapMethod · 0.95
isAbilitySickMethod · 0.95
getHostCardMethod · 0.65

Tested by

no test coverage detected