From 58576ca5750a63dadf26213dcfc2f7dc0a99754e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 18 Apr 2019 18:36:41 -0400 Subject: [PATCH] Implemented Callous Dismissal --- .../src/mage/cards/c/CallousDismissal.java | 36 +++++++++++++++++++ Mage.Sets/src/mage/sets/WarOfTheSpark.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/CallousDismissal.java diff --git a/Mage.Sets/src/mage/cards/c/CallousDismissal.java b/Mage.Sets/src/mage/cards/c/CallousDismissal.java new file mode 100644 index 0000000000..db2440421f --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CallousDismissal.java @@ -0,0 +1,36 @@ +package mage.cards.c; + +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.abilities.effects.keyword.AmassEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetNonlandPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class CallousDismissal extends CardImpl { + + public CallousDismissal(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}"); + + // Return target nonland permanent to its owner's hand. + this.getSpellAbility().addEffect(new ReturnToHandTargetEffect()); + this.getSpellAbility().addTarget(new TargetNonlandPermanent()); + + // Amass 1. + this.getSpellAbility().addEffect(new AmassEffect(1).concatBy("
")); + } + + private CallousDismissal(final CallousDismissal card) { + super(card); + } + + @Override + public CallousDismissal copy() { + return new CallousDismissal(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WarOfTheSpark.java b/Mage.Sets/src/mage/sets/WarOfTheSpark.java index 608d0e1197..becc8467eb 100644 --- a/Mage.Sets/src/mage/sets/WarOfTheSpark.java +++ b/Mage.Sets/src/mage/sets/WarOfTheSpark.java @@ -54,6 +54,7 @@ public final class WarOfTheSpark extends ExpansionSet { cards.add(new SetCardInfo("Bond of Revival", 80, Rarity.UNCOMMON, mage.cards.b.BondOfRevival.class)); cards.add(new SetCardInfo("Bulwark Giant", 7, Rarity.COMMON, mage.cards.b.BulwarkGiant.class)); cards.add(new SetCardInfo("Burning Prophet", 117, Rarity.COMMON, mage.cards.b.BurningProphet.class)); + cards.add(new SetCardInfo("Callous Dismissal", 44, Rarity.COMMON, mage.cards.c.CallousDismissal.class)); cards.add(new SetCardInfo("Casualties of War", 187, Rarity.RARE, mage.cards.c.CasualtiesOfWar.class)); cards.add(new SetCardInfo("Centaur Nurturer", 156, Rarity.COMMON, mage.cards.c.CentaurNurturer.class)); cards.add(new SetCardInfo("Chainwhip Cyclops", 118, Rarity.COMMON, mage.cards.c.ChainwhipCyclops.class));