default void addSuperType(SuperType superType) { getSuperType().add(superType); }
@Override public boolean apply(MageObject input, Game game) { return input.getSuperType().contains(supertype); }
default boolean isSnow() { return getSuperType().contains(SuperType.SNOW); }
default boolean isLegendary() { return getSuperType().contains(SuperType.LEGENDARY); }
default boolean isBasic() { return getSuperType().contains(SuperType.BASIC); }
default boolean isWorld() { return getSuperType().contains(SuperType.WORLD); }
default boolean isHistoric() { return getCardType().contains(CardType.ARTIFACT) || getSuperType().contains(SuperType.LEGENDARY) || hasSubtype(SubType.SAGA, null); }
@Override public boolean apply(Game game, Ability source) { if (!source.getTargets().isEmpty()) { MageObject mageObject = game.getObject(source.getFirstTarget()); if (mageObject != null) { return mageObject.getSuperType().contains(superType); } } return false; } }
this.superTypes = object.getSuperType(); this.color = object.getColor(null); this.manaCost = object.getManaCost().getSymbols();
public static void setPermanentToFaceDownCreature(MageObject mageObject) { mageObject.getPower().modifyBaseValue(2); mageObject.getToughness().modifyBaseValue(2); mageObject.getAbilities().clear(); mageObject.getColor(null).setColor(new ObjectColor()); mageObject.setName(""); mageObject.getCardType().clear(); mageObject.addCardType(CardType.CREATURE); mageObject.getSubtype(null).clear(); mageObject.getSuperType().clear(); mageObject.getManaCost().clear(); if (mageObject instanceof Permanent) { ((Permanent) mageObject).setExpansionSetCode(""); ((Permanent) mageObject).setRarity(Rarity.SPECIAL); } } }
for (SuperType type : sourceObj.getSuperType()) { target.addSuperType(type);
for (SuperType type : copyFromObject.getSuperType()) { permanent.addSuperType(type);