[MOM] Implement Invasion of Segovia / Caetus, Sea Tyrant of Segovia

This commit is contained in:
theelk801 2023-04-15 17:52:42 -04:00
parent e7f6173cc2
commit 453d734e30
4 changed files with 137 additions and 0 deletions

View file

@ -0,0 +1,63 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.GainAbilitySpellsEffect;
import mage.abilities.effects.common.UntapTargetEffect;
import mage.abilities.keyword.ConvokeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.TargetController;
import mage.filter.FilterObject;
import mage.filter.predicate.Predicates;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CaetusSeaTyrantOfSegovia extends CardImpl {
private static final FilterObject filter = new FilterObject("noncreature spells you cast");
static {
filter.add(Predicates.not(CardType.CREATURE.getPredicate()));
filter.add(TargetController.YOU.getControllerPredicate());
}
public CaetusSeaTyrantOfSegovia(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.SERPENT);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
this.color.setBlue(true);
this.nightCard = true;
// Noncreature spells you cast have convoke.
this.addAbility(new SimpleStaticAbility(new GainAbilitySpellsEffect(new ConvokeAbility(), filter)));
// At the beginning of your end step, untap up to four target creatures.
Ability ability = new BeginningOfEndStepTriggeredAbility(
new UntapTargetEffect(), TargetController.YOU, false
);
ability.addTarget(new TargetCreaturePermanent(0, 4));
this.addAbility(ability);
}
private CaetusSeaTyrantOfSegovia(final CaetusSeaTyrantOfSegovia card) {
super(card);
}
@Override
public CaetusSeaTyrantOfSegovia copy() {
return new CaetusSeaTyrantOfSegovia(this);
}
}

View file

@ -0,0 +1,41 @@
package mage.cards.i;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SiegeAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.KrakenToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class InvasionOfSegovia extends CardImpl {
public InvasionOfSegovia(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.BATTLE}, "{2}{U}");
this.subtype.add(SubType.SIEGE);
this.setStartingDefense(4);
this.secondSideCardClazz = mage.cards.c.CaetusSeaTyrantOfSegovia.class;
// (As a Siege enters, choose an opponent to protect it. You and others can attack it. When it's defeated, exile it, then cast it transformed.)
this.addAbility(new SiegeAbility());
// When Invasion of Segovia enters the battlefield, create two 1/1 blue Kraken creature tokens with trample.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new KrakenToken(), 2)));
}
private InvasionOfSegovia(final InvasionOfSegovia card) {
super(card);
}
@Override
public InvasionOfSegovia copy() {
return new InvasionOfSegovia(this);
}
}

View file

@ -61,6 +61,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
cards.add(new SetCardInfo("Breach the Multiverse", 94, Rarity.RARE, mage.cards.b.BreachTheMultiverse.class));
cards.add(new SetCardInfo("Burning Sun's Fury", 133, Rarity.COMMON, mage.cards.b.BurningSunsFury.class));
cards.add(new SetCardInfo("Burnished Dunestomper", 43, Rarity.COMMON, mage.cards.b.BurnishedDunestomper.class));
cards.add(new SetCardInfo("Caetus, Sea Tyrant of Segovia", 63, Rarity.RARE, mage.cards.c.CaetusSeaTyrantOfSegovia.class));
cards.add(new SetCardInfo("Captive Weird", 49, Rarity.UNCOMMON, mage.cards.c.CaptiveWeird.class));
cards.add(new SetCardInfo("Chandra, Hope's Beacon", 134, Rarity.MYTHIC, mage.cards.c.ChandraHopesBeacon.class));
cards.add(new SetCardInfo("Change the Equation", 50, Rarity.UNCOMMON, mage.cards.c.ChangeTheEquation.class));
@ -170,6 +171,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
cards.add(new SetCardInfo("Invasion of New Capenna", 238, Rarity.UNCOMMON, mage.cards.i.InvasionOfNewCapenna.class));
cards.add(new SetCardInfo("Invasion of Pyrulea", 240, Rarity.UNCOMMON, mage.cards.i.InvasionOfPyrulea.class));
cards.add(new SetCardInfo("Invasion of Ravnica", 1, Rarity.MYTHIC, mage.cards.i.InvasionOfRavnica.class));
cards.add(new SetCardInfo("Invasion of Segovia", 63, Rarity.RARE, mage.cards.i.InvasionOfSegovia.class));
cards.add(new SetCardInfo("Invasion of Shandalar", 193, Rarity.MYTHIC, mage.cards.i.InvasionOfShandalar.class));
cards.add(new SetCardInfo("Invasion of Theros", 23, Rarity.RARE, mage.cards.i.InvasionOfTheros.class));
cards.add(new SetCardInfo("Invasion of Tolvada", 241, Rarity.RARE, mage.cards.i.InvasionOfTolvada.class));

View file

@ -0,0 +1,31 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.TrampleAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class Kraken11Token extends TokenImpl {
public Kraken11Token() {
super("Kraken Token", "1/1 blue Kraken creature token with trample");
this.cardType.add(CardType.CREATURE);
this.subtype.add(SubType.KRAKEN);
this.color.setBlue(true);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(TrampleAbility.getInstance());
}
private Kraken11Token(final Kraken11Token token) {
super(token);
}
public Kraken11Token copy() {
return new Kraken11Token(this);
}
}