[BIG] Implement Substitute Syntesizer

This commit is contained in:
Susucre 2024-04-03 00:03:20 +02:00
parent 4828d73b49
commit 213c1f5d88
2 changed files with 53 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));
}