diff --git a/Mage.Sets/src/mage/cards/d/DragTheCanal.java b/Mage.Sets/src/mage/cards/d/DragTheCanal.java new file mode 100644 index 00000000000..b9b7ac1ccf2 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DragTheCanal.java @@ -0,0 +1,48 @@ +package mage.cards.d; + +import mage.abilities.condition.common.MorbidCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.keyword.InvestigateEffect; +import mage.abilities.effects.keyword.SurveilEffect; +import mage.abilities.hint.common.MorbidHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.DetectiveToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DragTheCanal extends CardImpl { + + public DragTheCanal(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}{B}"); + + // Create a 2/2 white and blue Detective creature token. If a creature died this turn, you gain 2 life, surveil 2, then investigate. + this.getSpellAbility().addEffect(new CreateTokenEffect(new DetectiveToken())); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new GainLifeEffect(2), MorbidCondition.instance, + "If a creature died this turn, you gain 2 life" + )); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new SurveilEffect(2), MorbidCondition.instance, ", surveil 2" + )); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new InvestigateEffect(), MorbidCondition.instance, ", then investigate" + )); + this.getSpellAbility().addHint(MorbidHint.instance); + } + + private DragTheCanal(final DragTheCanal card) { + super(card); + } + + @Override + public DragTheCanal copy() { + return new DragTheCanal(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java b/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java index e5335b56d52..9b2841f9a04 100644 --- a/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java +++ b/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java @@ -42,6 +42,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet { cards.add(new SetCardInfo("Demand Answers", 122, Rarity.COMMON, mage.cards.d.DemandAnswers.class)); cards.add(new SetCardInfo("Dog Walker", 197, Rarity.COMMON, mage.cards.d.DogWalker.class)); cards.add(new SetCardInfo("Doppelgang", 198, Rarity.RARE, mage.cards.d.Doppelgang.class)); + cards.add(new SetCardInfo("Drag the Canal", 199, Rarity.RARE, mage.cards.d.DragTheCanal.class)); cards.add(new SetCardInfo("Elegant Parlor", 260, Rarity.RARE, mage.cards.e.ElegantParlor.class)); cards.add(new SetCardInfo("Escape Tunnel", 261, Rarity.COMMON, mage.cards.e.EscapeTunnel.class)); cards.add(new SetCardInfo("Essence of Antiquity", 15, Rarity.UNCOMMON, mage.cards.e.EssenceOfAntiquity.class));