From ed21b2c37fd4beba490c10bf772045672ee78240 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 27 Jan 2023 09:34:02 -0500 Subject: [PATCH] [ONE] Implement Infectious Inquiry --- .../src/mage/cards/i/InfectiousInquiry.java | 38 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/InfectiousInquiry.java diff --git a/Mage.Sets/src/mage/cards/i/InfectiousInquiry.java b/Mage.Sets/src/mage/cards/i/InfectiousInquiry.java new file mode 100644 index 00000000000..3ed215772eb --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InfectiousInquiry.java @@ -0,0 +1,38 @@ +package mage.cards.i; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.abilities.effects.common.counter.AddCountersPlayersEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.counters.CounterType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class InfectiousInquiry extends CardImpl { + + public InfectiousInquiry(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}"); + + // You draw two cards and you lose 2 life. Each opponent gets a poison counter. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1, "you")); + this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(2).concatBy("and")); + this.getSpellAbility().addEffect(new AddCountersPlayersEffect( + CounterType.POISON.createInstance(), TargetController.OPPONENT + )); + } + + private InfectiousInquiry(final InfectiousInquiry card) { + super(card); + } + + @Override + public InfectiousInquiry copy() { + return new InfectiousInquiry(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 968724c46c3..42b237836f7 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -84,6 +84,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Ichorspit Basilisk", 170, Rarity.COMMON, mage.cards.i.IchorspitBasilisk.class)); cards.add(new SetCardInfo("Incisor Glider", 15, Rarity.COMMON, mage.cards.i.IncisorGlider.class)); cards.add(new SetCardInfo("Infectious Bite", 172, Rarity.UNCOMMON, mage.cards.i.InfectiousBite.class)); + cards.add(new SetCardInfo("Infectious Inquiry", 97, Rarity.COMMON, mage.cards.i.InfectiousInquiry.class)); cards.add(new SetCardInfo("Infested Fleshcutter", 17, Rarity.UNCOMMON, mage.cards.i.InfestedFleshcutter.class)); cards.add(new SetCardInfo("Island", 273, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Jawbone Duelist", 18, Rarity.UNCOMMON, mage.cards.j.JawboneDuelist.class));