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

Method cantBeAttachedMsg

forge-game/src/main/java/forge/game/card/Card.java:6941–6947  ·  view source on GitHub ↗
(final Card attach, SpellAbility sa, boolean checkSBA)

Source from the content-addressed store, hash-verified

6939 }
6940
6941 @Override
6942 public String cantBeAttachedMsg(final Card attach, SpellAbility sa, boolean checkSBA) {
6943 if (isPhasedOut() && !attach.isPhasedOut()) {
6944 return getDisplayName() + " is phased out";
6945 }
6946 return super.cantBeAttachedMsg(attach, sa, checkSBA);
6947 }
6948
6949 public final boolean canBeSacrificedBy(final SpellAbility source, final boolean effect) {
6950 if (isImmutable()) {

Callers 1

onCardSelectedMethod · 0.45

Calls 2

isPhasedOutMethod · 0.95
getDisplayNameMethod · 0.95

Tested by

no test coverage detected