From 41392c00af70d4522028cc99f520c85fdbdc8f78 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Wed, 7 Jul 2021 03:39:44 -0500 Subject: [PATCH] [AFR] Implemented Compelled Duel --- Mage.Sets/src/mage/cards/c/CompelledDuel.java | 35 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 36 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/CompelledDuel.java diff --git a/Mage.Sets/src/mage/cards/c/CompelledDuel.java b/Mage.Sets/src/mage/cards/c/CompelledDuel.java new file mode 100644 index 00000000000..440ca2bf6db --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CompelledDuel.java @@ -0,0 +1,35 @@ +package mage.cards.c; + +import java.util.UUID; + +import mage.abilities.effects.common.combat.MustBeBlockedByAtLeastOneTargetEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author weirddan455 + */ +public final class CompelledDuel extends CardImpl { + + public CompelledDuel(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}"); + + // Target creature gets +3/+3 until end of turn and must be blocked this turn if able. + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3)); + this.getSpellAbility().addEffect(new MustBeBlockedByAtLeastOneTargetEffect().setText("and must be blocked this turn if able")); + } + + private CompelledDuel(final CompelledDuel card) { + super(card); + } + + @Override + public CompelledDuel copy() { + return new CompelledDuel(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 68589011b94..47d3ac392aa 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -53,6 +53,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Clattering Skeletons", 93, Rarity.COMMON, mage.cards.c.ClatteringSkeletons.class)); cards.add(new SetCardInfo("Clever Conjurer", 51, Rarity.COMMON, mage.cards.c.CleverConjurer.class)); cards.add(new SetCardInfo("Cloister Gargoyle", 7, Rarity.UNCOMMON, mage.cards.c.CloisterGargoyle.class)); + cards.add(new SetCardInfo("Compelled Duel", 178, Rarity.COMMON, mage.cards.c.CompelledDuel.class)); cards.add(new SetCardInfo("Contact Other Plane", 52, Rarity.COMMON, mage.cards.c.ContactOtherPlane.class)); cards.add(new SetCardInfo("Dawnbringer Cleric", 9, Rarity.COMMON, mage.cards.d.DawnbringerCleric.class)); cards.add(new SetCardInfo("Death-Priest of Myrkul", 95, Rarity.UNCOMMON, mage.cards.d.DeathPriestOfMyrkul.class));