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

Method isVariant

forge-core/src/main/java/forge/card/CardRules.java:152–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 }
151
152 public boolean isVariant() {
153 if (placeholderFaces != null && (mainPart == null || splitType.getAggregationMethod() == CardSplitType.FaceSelectionMethod.COMBINE))
154 return false; //Type line isn't fully generated, and we need it to determine if this is a variant type
155 CardType t = getType();
156 return t.isVanguard() || t.isScheme() || t.isPlane() || t.isPhenomenon()
157 || t.isConspiracy() || t.isDungeon() || t.isAttraction() || t.isContraption();
158 }
159
160 public CardSplitType getSplitType() {
161 return splitType;

Callers 7

loadResourcesMethod · 0.95
attemptToLoadCardMethod · 0.95
getImageRelativePathMethod · 0.95
saveChangesMethod · 0.95
StaticDataMethod · 0.80
getMaxCardCopiesMethod · 0.80

Calls 10

getTypeMethod · 0.95
isVanguardMethod · 0.95
isSchemeMethod · 0.95
isPlaneMethod · 0.95
isPhenomenonMethod · 0.95
isConspiracyMethod · 0.95
isDungeonMethod · 0.95
isAttractionMethod · 0.95
isContraptionMethod · 0.95
getAggregationMethodMethod · 0.80

Tested by

no test coverage detected