diff --git a/Mage.Sets/src/mage/cards/s/SubstituteSynthesizer.java b/Mage.Sets/src/mage/cards/s/SubstituteSynthesizer.java new file mode 100644 index 00000000000..2796d3f88b5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SubstituteSynthesizer.java @@ -0,0 +1,52 @@ +package mage.cards.s; + +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterArtifactPermanent; +import mage.filter.predicate.mageobject.AnotherPredicate; +import mage.filter.predicate.mageobject.ManaValuePredicate; +import mage.game.permanent.token.KarnConstructToken; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class SubstituteSynthesizer extends CardImpl { + + private static final FilterPermanent filter = + new FilterArtifactPermanent("another artifact with mana value 3 or more"); + + static { + filter.add(AnotherPredicate.instance); + filter.add(new ManaValuePredicate(ComparisonType.OR_GREATER, 3)); + } + + public SubstituteSynthesizer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{U}"); + + // When Substitute Synthesizer enters the battlefield, scry 2. + this.addAbility(new EntersBattlefieldTriggeredAbility(new ScryEffect(2))); + + // Whenever another artifact with mana value 3 or more enters the battlefield under your control, create a 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control." + this.addAbility(new EntersBattlefieldControlledTriggeredAbility( + new CreateTokenEffect(new KarnConstructToken()), filter + )); + } + + private SubstituteSynthesizer(final SubstituteSynthesizer card) { + super(card); + } + + @Override + public SubstituteSynthesizer copy() { + return new SubstituteSynthesizer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBigScore.java b/Mage.Sets/src/mage/sets/TheBigScore.java index 335fe39af6a..2ccb596f97f 100644 --- a/Mage.Sets/src/mage/sets/TheBigScore.java +++ b/Mage.Sets/src/mage/sets/TheBigScore.java @@ -25,6 +25,7 @@ public final class TheBigScore extends ExpansionSet { cards.add(new SetCardInfo("Loot, the Key to Everything", 21, Rarity.MYTHIC, mage.cards.l.LootTheKeyToEverything.class)); cards.add(new SetCardInfo("Lotus Ring", 24, Rarity.MYTHIC, mage.cards.l.LotusRing.class)); cards.add(new SetCardInfo("Oltec Matterweaver", 3, Rarity.MYTHIC, mage.cards.o.OltecMatterweaver.class)); + cards.add(new SetCardInfo("Substitute Synthesizer", 6, Rarity.MYTHIC, mage.cards.s.SubstituteSynthesizer.class)); cards.add(new SetCardInfo("Torpor Orb", 27, Rarity.MYTHIC, mage.cards.t.TorporOrb.class)); cards.add(new SetCardInfo("Vaultborn Tyrant", 20, Rarity.MYTHIC, mage.cards.v.VaultbornTyrant.class)); }