[MKM] Implement Drag the Canal

This commit is contained in:
theelk801 2024-01-19 10:42:05 -05:00
parent a14853518f
commit 1a2e0db483
2 changed files with 49 additions and 0 deletions

View file

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

View file

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