From 8f3cde252126f9d93b793e252e475c880107c3c7 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 6 Jun 2020 09:16:38 -0400 Subject: [PATCH] Implemented Bad Deal --- Mage.Sets/src/mage/cards/b/BadDeal.java | 38 ++++++++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2021.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BadDeal.java diff --git a/Mage.Sets/src/mage/cards/b/BadDeal.java b/Mage.Sets/src/mage/cards/b/BadDeal.java new file mode 100644 index 0000000000..22116bb83c --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BadDeal.java @@ -0,0 +1,38 @@ +package mage.cards.b; + +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.LoseLifeAllPlayersEffect; +import mage.abilities.effects.common.discard.DiscardEachPlayerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BadDeal extends CardImpl { + + public BadDeal(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{B}"); + + // You draw two cards and each opponent discards two cards. Each player loses 2 life. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2).setText("You draw two cards")); + this.getSpellAbility().addEffect(new DiscardEachPlayerEffect( + StaticValue.get(2), false, TargetController.OPPONENT + ).concatBy("and")); + this.getSpellAbility().addEffect(new LoseLifeAllPlayersEffect(2).setText("Each player loses 2 life")); + } + + private BadDeal(final BadDeal card) { + super(card); + } + + @Override + public BadDeal copy() { + return new BadDeal(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2021.java b/Mage.Sets/src/mage/sets/CoreSet2021.java index e03f7cc786..94958d0172 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2021.java +++ b/Mage.Sets/src/mage/sets/CoreSet2021.java @@ -34,6 +34,7 @@ public final class CoreSet2021 extends ExpansionSet { this.maxCardNumberInBooster = 274; cards.add(new SetCardInfo("Azusa, Lost but Seeking", 173, Rarity.RARE, mage.cards.a.AzusaLostButSeeking.class)); + cards.add(new SetCardInfo("Bad Deal", 89, Rarity.UNCOMMON, mage.cards.b.BadDeal.class)); cards.add(new SetCardInfo("Baneslayer Angel", 4, Rarity.MYTHIC, mage.cards.b.BaneslayerAngel.class)); cards.add(new SetCardInfo("Containment Priest", 314, Rarity.RARE, mage.cards.c.ContainmentPriest.class)); cards.add(new SetCardInfo("Double Vision", 142, Rarity.RARE, mage.cards.d.DoubleVision.class));