diff --git a/Mage.Sets/src/mage/cards/d/DeflectingSwat.java b/Mage.Sets/src/mage/cards/d/DeflectingSwat.java new file mode 100644 index 0000000000..616b942e7e --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DeflectingSwat.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.ChooseNewTargetsTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.TargetStackObject; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DeflectingSwat extends CardImpl { + + public DeflectingSwat(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); + + // If you control a commander, you may cast this spell without paying its mana cost. + this.addAbility(new AlternativeCostSourceAbility(null, ControlACommanderCondition.instance)); + + // You may chose new targets for target spell or ability. + this.getSpellAbility().addTarget(new TargetStackObject()); + this.getSpellAbility().addEffect(new ChooseNewTargetsTargetEffect()); + } + + private DeflectingSwat(final DeflectingSwat card) { + super(card); + } + + @Override + public DeflectingSwat copy() { + return new DeflectingSwat(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2020Edition.java b/Mage.Sets/src/mage/sets/Commander2020Edition.java index a328c04b70..05e2d9b8f4 100644 --- a/Mage.Sets/src/mage/sets/Commander2020Edition.java +++ b/Mage.Sets/src/mage/sets/Commander2020Edition.java @@ -35,6 +35,7 @@ public final class Commander2020Edition extends ExpansionSet { cards.add(new SetCardInfo("Curious Herd", 59, Rarity.RARE, mage.cards.c.CuriousHerd.class)); cards.add(new SetCardInfo("Daring Fiendbonder", 41, Rarity.RARE, mage.cards.d.DaringFiendbonder.class)); cards.add(new SetCardInfo("Deadly Tempest", 131, Rarity.RARE, mage.cards.d.DeadlyTempest.class)); + cards.add(new SetCardInfo("Deflecting Swat", 50, Rarity.RARE, mage.cards.d.DeflectingSwat.class)); cards.add(new SetCardInfo("Dismantling Wave", 25, Rarity.RARE, mage.cards.d.DismantlingWave.class)); cards.add(new SetCardInfo("Eternal Dragon", 88, Rarity.RARE, mage.cards.e.EternalDragon.class)); cards.add(new SetCardInfo("Flawless Maneuver", 26, Rarity.RARE, mage.cards.f.FlawlessManeuver.class));