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

Method isOnAdventure

forge-game/src/main/java/forge/game/card/Card.java:1117–1128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1115 }
1116
1117 public final boolean isOnAdventure() {
1118 if (!isAdventureCard())
1119 return false;
1120 if (!equals(getExiledWith()))
1121 return false;
1122 if (!CardStateName.Secondary.equals(getExiledWith().getCurrentStateName()))
1123 return false;
1124 if (!getExiledWith().getType().hasSubtype("Adventure")) {
1125 return false;
1126 }
1127 return true;
1128 }
1129
1130 public final boolean isBackSide() {
1131 return backside;

Callers 2

testMethod · 0.80

Calls 6

isAdventureCardMethod · 0.95
getExiledWithMethod · 0.95
getCurrentStateNameMethod · 0.80
hasSubtypeMethod · 0.65
getTypeMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected