diff --git a/Mage.Sets/src/mage/cards/c/CunningEvasion.java b/Mage.Sets/src/mage/cards/c/CunningEvasion.java new file mode 100644 index 0000000000..2f6e85cca1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CunningEvasion.java @@ -0,0 +1,43 @@ +package mage.cards.c; + +import mage.abilities.common.BecomesBlockedAllTriggeredAbility; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.ControllerPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class CunningEvasion extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("a creature you control"); + + static { + filter.add(new ControllerPredicate(TargetController.YOU)); + } + + public CunningEvasion(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}"); + + // Whenever a creature you control becomes blocked, you may return it to its owner's hand. + this.addAbility(new BecomesBlockedAllTriggeredAbility( + new ReturnToHandTargetEffect().setText("return it to its owner's hand"), + true, filter, true + )); + } + + private CunningEvasion(final CunningEvasion card) { + super(card); + } + + @Override + public CunningEvasion copy() { + return new CunningEvasion(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 19b0eae36a..d7fbc47e90 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -57,6 +57,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Cordial Vampire", 83, Rarity.RARE, mage.cards.c.CordialVampire.class)); cards.add(new SetCardInfo("Crashing Footfalls", 160, Rarity.RARE, mage.cards.c.CrashingFootfalls.class)); cards.add(new SetCardInfo("Crypt Rats", 84, Rarity.UNCOMMON, mage.cards.c.CryptRats.class)); + cards.add(new SetCardInfo("Cunning Evasion", 45, Rarity.UNCOMMON, mage.cards.c.CunningEvasion.class)); cards.add(new SetCardInfo("Dead of Winter", 85, Rarity.RARE, mage.cards.d.DeadOfWinter.class)); cards.add(new SetCardInfo("Deep Forest Hermit", 161, Rarity.RARE, mage.cards.d.DeepForestHermit.class)); cards.add(new SetCardInfo("Defile", 86, Rarity.COMMON, mage.cards.d.Defile.class));