@Override public AddCardTypeAttachedEffect copy() { return new AddCardTypeAttachedEffect(this); }
public AddCardTypeAttachedEffect(CardType addedCardType, Duration duration, AttachmentType attachmentType) { super(duration, Layer.TypeChangingEffects_4, SubLayer.NA, Outcome.Benefit); this.addedCardType = addedCardType; this.attachmentType = attachmentType; setText(); }
public SilverskinArmor(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); this.subtype.add(SubType.EQUIPMENT); // Equipped creature gets +1/+1 and is an artifact in addition to its other types. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(1, 1, Duration.WhileOnBattlefield))); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new AddCardTypeAttachedEffect(CardType.ARTIFACT, Duration.WhileOnBattlefield, AttachmentType.EQUIPMENT))); // Equip {2} this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl("{2}"))); }
public TransmogrifyingLicid(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{3}"); this.subtype.add(SubType.LICID); this.power = new MageInt(2); this.toughness = new MageInt(2); // {1}, {tap}: Transmogrifying Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {1} to end this effect. this.addAbility(new LicidAbility(new GenericManaCost(1), new GenericManaCost(1))); // Enchanted creature gets +1/+1 and is an artifact in addition to its other types. Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1)); Effect effect = new AddCardTypeAttachedEffect(CardType.ARTIFACT, Duration.WhileOnBattlefield, AttachmentType.AURA); effect.setText("and is an artifact in addition to its other types"); ability.addEffect(effect); this.addAbility(ability); }