From eceda62bedcfd7af098b01f423f99e50a31d5499 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 8 Apr 2020 08:04:02 -0400 Subject: [PATCH] Implemented Deadly Rollick --- Mage.Sets/src/mage/cards/d/DeadlyRollick.java | 37 +++++++++++++++++++ .../src/mage/sets/Commander2020Edition.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DeadlyRollick.java diff --git a/Mage.Sets/src/mage/cards/d/DeadlyRollick.java b/Mage.Sets/src/mage/cards/d/DeadlyRollick.java new file mode 100644 index 0000000000..1d259b9544 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DeadlyRollick.java @@ -0,0 +1,37 @@ +package mage.cards.d; + +import mage.abilities.condition.common.ControlACommanderCondition; +import mage.abilities.costs.AlternativeCostSourceAbility; +import mage.abilities.effects.common.ExileTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DeadlyRollick extends CardImpl { + + public DeadlyRollick(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{B}"); + + // If you control a commander, you may cast this card without paying its mana cost + this.addAbility(new AlternativeCostSourceAbility(null, ControlACommanderCondition.instance)); + + // Exile target creature. + this.getSpellAbility().addEffect(new ExileTargetEffect()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private DeadlyRollick(final DeadlyRollick card) { + super(card); + } + + @Override + public DeadlyRollick copy() { + return new DeadlyRollick(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2020Edition.java b/Mage.Sets/src/mage/sets/Commander2020Edition.java index d4f0845adb..163bae0a23 100644 --- a/Mage.Sets/src/mage/sets/Commander2020Edition.java +++ b/Mage.Sets/src/mage/sets/Commander2020Edition.java @@ -95,6 +95,7 @@ public final class Commander2020Edition extends ExpansionSet { cards.add(new SetCardInfo("Daring Fiendbonder", 41, Rarity.RARE, mage.cards.d.DaringFiendbonder.class)); cards.add(new SetCardInfo("Darkwater Catacombs", 265, Rarity.RARE, mage.cards.d.DarkwaterCatacombs.class)); cards.add(new SetCardInfo("Deadbridge Chant", 207, Rarity.MYTHIC, mage.cards.d.DeadbridgeChant.class)); + cards.add(new SetCardInfo("Deadly Rollick", 42, Rarity.RARE, mage.cards.d.DeadlyRollick.class)); cards.add(new SetCardInfo("Deadly Tempest", 131, Rarity.RARE, mage.cards.d.DeadlyTempest.class)); cards.add(new SetCardInfo("Dearly Departed", 84, Rarity.RARE, mage.cards.d.DearlyDeparted.class)); cards.add(new SetCardInfo("Deathsprout", 208, Rarity.UNCOMMON, mage.cards.d.Deathsprout.class));