diff --git a/Mage.Sets/src/mage/cards/m/MarthaJones.java b/Mage.Sets/src/mage/cards/m/MarthaJones.java new file mode 100644 index 00000000000..49a0f45faa1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MarthaJones.java @@ -0,0 +1,71 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SacrificePermanentTriggeredAbility; +import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect; +import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect; +import mage.abilities.effects.keyword.InvestigateEffect; +import mage.abilities.keyword.DoctorsCompanionAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.AnotherPredicate; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class MarthaJones extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent(SubType.CLUE, "a Clue"); + private static final FilterCreaturePermanent filterOther = new FilterCreaturePermanent("other target creature"); + + static { + filterOther.add(AnotherPredicate.instance); + } + + public MarthaJones(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Woman Who Walked the Earth -- When Martha Jones enters the battlefield, investigate. + this.addAbility(new EntersBattlefieldTriggeredAbility( + new InvestigateEffect(), false + ).withFlavorWord("Woman Who Walked the Earth")); + + // Whenever you sacrifice a Clue, Martha Jones and up to one other target creature can't be blocked this turn. + Ability ability = new SacrificePermanentTriggeredAbility( + new CantBeBlockedSourceEffect(Duration.EndOfTurn).setText("{this}"), filter + ); + ability.addEffect(new CantBeBlockedTargetEffect() + .setText("and up to one other target creature can't be blocked this turn")); + ability.addTarget(new TargetCreaturePermanent(0, 1, filterOther, false)); + this.addAbility(ability); + + // Doctor's companion + this.addAbility(DoctorsCompanionAbility.getInstance()); + } + + private MarthaJones(final MarthaJones card) { + super(card); + } + + @Override + public MarthaJones copy() { + return new MarthaJones(this); + } +} diff --git a/Mage.Sets/src/mage/cards/o/OminousCemetery.java b/Mage.Sets/src/mage/cards/o/OminousCemetery.java new file mode 100644 index 00000000000..412853f6784 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OminousCemetery.java @@ -0,0 +1,48 @@ +package mage.cards.o; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.ExileSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.ShuffleIntoLibraryTargetEffect; +import mage.abilities.mana.ColorlessManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class OminousCemetery extends CardImpl { + + public OminousCemetery(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + // {T}: Add {C}. + this.addAbility(new ColorlessManaAbility()); + + // {5}, {T}, Exile Ominous Cemetery: Target creature's owner shuffles it into their library. + Ability ability = new SimpleActivatedAbility( + new ShuffleIntoLibraryTargetEffect() + .setText("target creature's owner shuffles it into their library"), + new GenericManaCost(5) + ); + ability.addCost(new TapSourceCost()); + ability.addCost(new ExileSourceCost()); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private OminousCemetery(final OminousCemetery card) { + super(card); + } + + @Override + public OminousCemetery copy() { + return new OminousCemetery(this); + } +} diff --git a/Mage.Sets/src/mage/cards/q/QuantumMisalignment.java b/Mage.Sets/src/mage/cards/q/QuantumMisalignment.java new file mode 100644 index 00000000000..b8272c12058 --- /dev/null +++ b/Mage.Sets/src/mage/cards/q/QuantumMisalignment.java @@ -0,0 +1,40 @@ +package mage.cards.q; + +import mage.abilities.effects.common.CreateTokenCopyTargetEffect; +import mage.abilities.keyword.ReboundAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class QuantumMisalignment extends CardImpl { + + public QuantumMisalignment(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}"); + + // Create a token that's a copy of target creature you control, except it isn't legendary. + this.getSpellAbility().addEffect( + new CreateTokenCopyTargetEffect() + .setIsntLegendary(true) + .setText("create a token that's a copy of target creature you control, except it isn't legendary") + ); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + + // Rebound + this.addAbility(new ReboundAbility()); + } + + private QuantumMisalignment(final QuantumMisalignment card) { + super(card); + } + + @Override + public QuantumMisalignment copy() { + return new QuantumMisalignment(this); + } +} diff --git a/Mage.Sets/src/mage/cards/r/RMSTitanic.java b/Mage.Sets/src/mage/cards/r/RMSTitanic.java new file mode 100644 index 00000000000..abe501c0a2e --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RMSTitanic.java @@ -0,0 +1,60 @@ +package mage.cards.r; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.dynamicvalue.common.SavedDamageValue; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.SacrificeSourceEffect; +import mage.abilities.keyword.CrewAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class RMSTitanic extends CardImpl { + + public RMSTitanic(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}{R}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.VEHICLE); + this.power = new MageInt(7); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // When RMS Titanic deals combat damage to a player, sacrifice it and create that many Treasure tokens. + Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility( + new SacrificeSourceEffect().setText("sacrifice it"), false + ); + ability.addEffect(new CreateTokenEffect(new TreasureToken(), SavedDamageValue.MANY) + .concatBy("and")); + this.addAbility(ability); + + // Crew 3 + this.addAbility(new CrewAbility(3)); + } + + private RMSTitanic(final RMSTitanic card) { + super(card); + } + + @Override + public RMSTitanic copy() { + return new RMSTitanic(this); + } +} \ No newline at end of file diff --git a/Mage.Sets/src/mage/cards/r/RenegadeSilent.java b/Mage.Sets/src/mage/cards/r/RenegadeSilent.java new file mode 100644 index 00000000000..34eb1f3a0ad --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RenegadeSilent.java @@ -0,0 +1,53 @@ +package mage.cards.r; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.effects.common.PhaseOutSourceEffect; +import mage.abilities.effects.common.combat.GoadTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class RenegadeSilent extends CardImpl { + + public RenegadeSilent(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}"); + + this.subtype.add(SubType.ALIEN); + this.subtype.add(SubType.HORROR); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // At the beginning of your end step, goad up to one target creature you don't control and put a +1/+1 counter on Renegade Silent. Renegade Silent phases out. + Ability ability = new BeginningOfEndStepTriggeredAbility( + new GoadTargetEffect().setText("goad up to one target creature you don't control"), + TargetController.YOU, false + ); + ability.addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)); + ability.addEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance()) + .concatBy("and")); + ability.addEffect(new PhaseOutSourceEffect()); + this.addAbility(ability); + } + + private RenegadeSilent(final RenegadeSilent card) { + super(card); + } + + @Override + public RenegadeSilent copy() { + return new RenegadeSilent(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DoctorWho.java b/Mage.Sets/src/mage/sets/DoctorWho.java index a722540cd1a..15d27aecde6 100644 --- a/Mage.Sets/src/mage/sets/DoctorWho.java +++ b/Mage.Sets/src/mage/sets/DoctorWho.java @@ -92,10 +92,12 @@ public final class DoctorWho extends ExpansionSet { cards.add(new SetCardInfo("Lavaclaw Reaches", 289, Rarity.RARE, mage.cards.l.LavaclawReaches.class)); cards.add(new SetCardInfo("Lightning Greaves", 243, Rarity.UNCOMMON, mage.cards.l.LightningGreaves.class)); cards.add(new SetCardInfo("Madame Vastra", 142, Rarity.RARE, mage.cards.m.MadameVastra.class)); + cards.add(new SetCardInfo("Martha Jones", 48, Rarity.RARE, mage.cards.m.MarthaJones.class)); cards.add(new SetCardInfo("Mind Stone", 244, Rarity.UNCOMMON, mage.cards.m.MindStone.class)); cards.add(new SetCardInfo("Mountain", 202, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Myriad Landscape", 290, Rarity.UNCOMMON, mage.cards.m.MyriadLandscape.class)); cards.add(new SetCardInfo("Mystic Monastery", 291, Rarity.UNCOMMON, mage.cards.m.MysticMonastery.class)); + cards.add(new SetCardInfo("Ominous Cemetery", 189, Rarity.UNCOMMON, mage.cards.o.OminousCemetery.class)); cards.add(new SetCardInfo("Out of Time", 209, Rarity.RARE, mage.cards.o.OutOfTime.class)); cards.add(new SetCardInfo("Overgrown Farmland", 292, Rarity.RARE, mage.cards.o.OvergrownFarmland.class)); cards.add(new SetCardInfo("Past in Flames", 565, Rarity.RARE, mage.cards.p.PastInFlames.class)); @@ -107,7 +109,10 @@ public final class DoctorWho extends ExpansionSet { cards.add(new SetCardInfo("Prairie Stream", 295, Rarity.RARE, mage.cards.p.PrairieStream.class)); cards.add(new SetCardInfo("Preordain", 218, Rarity.COMMON, mage.cards.p.Preordain.class)); cards.add(new SetCardInfo("Propaganda", 219, Rarity.UNCOMMON, mage.cards.p.Propaganda.class)); + cards.add(new SetCardInfo("Quantum Misalignment", 52, Rarity.RARE, mage.cards.q.QuantumMisalignment.class)); + cards.add(new SetCardInfo("RMS Titanic", 93, Rarity.RARE, mage.cards.r.RMSTitanic.class)); cards.add(new SetCardInfo("Reliquary Tower", 296, Rarity.UNCOMMON, mage.cards.r.ReliquaryTower.class)); + cards.add(new SetCardInfo("Renegade Silent", 53, Rarity.UNCOMMON, mage.cards.r.RenegadeSilent.class)); cards.add(new SetCardInfo("Return to Dust", 211, Rarity.UNCOMMON, mage.cards.r.ReturnToDust.class)); cards.add(new SetCardInfo("River of Tears", 297, Rarity.RARE, mage.cards.r.RiverOfTears.class)); cards.add(new SetCardInfo("Rockfall Vale", 298, Rarity.RARE, mage.cards.r.RockfallVale.class));