[MOC] Implement Saint Traft and Rem Karolus

This commit is contained in:
theelk801 2023-04-12 09:07:19 -04:00
parent 203defa56d
commit 6a89a06ba0
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,69 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.IfAbilityHasResolvedXTimesEffect;
import mage.abilities.effects.common.UntapSourceEffect;
import mage.abilities.keyword.ConvokeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.AbilityPredicate;
import mage.game.permanent.token.AngelToken;
import mage.game.permanent.token.RedHumanToken;
import mage.game.permanent.token.SpiritBlueToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SaintTraftAndRemKarolus extends CardImpl {
private static final FilterSpell filter = new FilterSpell("a spell that has convoke");
static {
filter.add(new AbilityPredicate(ConvokeAbility.class));
}
public SaintTraftAndRemKarolus(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{R}{W}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.SPIRIT);
this.subtype.add(SubType.HUMAN);
this.power = new MageInt(3);
this.toughness = new MageInt(4);
// Whenever Saint Traft and Rem Karolus becomes tapped, create a 1/1 red Human creature token if this is the first time this ability has resolved this turn. If it's the second time, create a 1/1 blue Spirit creature token with flying. If it's the third time, create a 4/4 white Angel creature token with flying.
Ability ability = new BecomesTappedSourceTriggeredAbility(new IfAbilityHasResolvedXTimesEffect(
Outcome.PutCreatureInPlay, 1, new CreateTokenEffect(new RedHumanToken())
).setText("create a 1/1 red Human creature token if this is the first time this ability has resolved this turn"));
ability.addEffect(new IfAbilityHasResolvedXTimesEffect(
Outcome.PutCreatureInPlay, 2, new CreateTokenEffect(new SpiritBlueToken())
).setText("If it's the second time, create a 1/1 blue Spirit creature token with flying"));
ability.addEffect(new IfAbilityHasResolvedXTimesEffect(
Outcome.PutCreatureInPlay, 3, new CreateTokenEffect(new AngelToken())
).setText("If it's the third time, create a 4/4 white Angel creature token with flying"));
this.addAbility(ability);
// Whenever you cast a spell that has convoke, untap Saint Traft and Rem Karolus.
this.addAbility(new SpellCastControllerTriggeredAbility(new UntapSourceEffect(), filter, false));
}
private SaintTraftAndRemKarolus(final SaintTraftAndRemKarolus card) {
super(card);
}
@Override
public SaintTraftAndRemKarolus copy() {
return new SaintTraftAndRemKarolus(this);
}
}

View file

@ -244,6 +244,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet {
cards.add(new SetCardInfo("Root Out", 311, Rarity.COMMON, mage.cards.r.RootOut.class));
cards.add(new SetCardInfo("Saheeli's Artistry", 234, Rarity.RARE, mage.cards.s.SaheelisArtistry.class));
cards.add(new SetCardInfo("Saheeli, Sublime Artificer", 338, Rarity.UNCOMMON, mage.cards.s.SaheeliSublimeArtificer.class));
cards.add(new SetCardInfo("Saint Traft and Rem Karolus", 9, Rarity.MYTHIC, mage.cards.s.SaintTraftAndRemKarolus.class));
cards.add(new SetCardInfo("Sandsteppe War Riders", 39, Rarity.RARE, mage.cards.s.SandsteppeWarRiders.class));
cards.add(new SetCardInfo("Schema Thief", 24, Rarity.RARE, mage.cards.s.SchemaThief.class));
cards.add(new SetCardInfo("Scrap Trawler", 373, Rarity.RARE, mage.cards.s.ScrapTrawler.class));