From f7119e6bc974df9dd4fd900ebc2f31cb2e4bc878 Mon Sep 17 00:00:00 2001 From: Cameron Merkel <44722506+cguy7777@users.noreply.github.com> Date: Thu, 4 Apr 2024 03:01:48 -0500 Subject: [PATCH] [PIP] Implement Piper Wright, Publick Reporter --- .../cards/p/PiperWrightPublickReporter.java | 57 +++++++++++++++++++ Mage.Sets/src/mage/sets/Fallout.java | 4 ++ 2 files changed, 61 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PiperWrightPublickReporter.java diff --git a/Mage.Sets/src/mage/cards/p/PiperWrightPublickReporter.java b/Mage.Sets/src/mage/cards/p/PiperWrightPublickReporter.java new file mode 100644 index 00000000000..953c1f6690b --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PiperWrightPublickReporter.java @@ -0,0 +1,57 @@ +package mage.cards.p; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.common.SacrificePermanentTriggeredAbility; +import mage.abilities.dynamicvalue.common.SavedDamageValue; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.effects.keyword.InvestigateEffect; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetControlledCreaturePermanent; + +/** + * @author Cguy7777 + */ +public final class PiperWrightPublickReporter extends CardImpl { + + public PiperWrightPublickReporter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.DETECTIVE); + this.power = new MageInt(1); + this.toughness = new MageInt(2); + + // Whenever Piper Wright deals combat damage to a player, investigate that many times. + this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility( + new InvestigateEffect(SavedDamageValue.MANY) + .setText("investigate that many times. (To investigate, create a Clue token. " + + "It's an artifact with \"{2}, Sacrifice this artifact: Draw a card.\")"), + false)); + + // Whenever you sacrifice a Clue, put a +1/+1 counter on target creature you control. + Ability ability = new SacrificePermanentTriggeredAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()), StaticFilters.FILTER_CONTROLLED_CLUE); + ability.addTarget(new TargetControlledCreaturePermanent()); + this.addAbility(ability); + } + + private PiperWrightPublickReporter(final PiperWrightPublickReporter card) { + super(card); + } + + @Override + public PiperWrightPublickReporter copy() { + return new PiperWrightPublickReporter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Fallout.java b/Mage.Sets/src/mage/sets/Fallout.java index be22b10a212..d7c70876ea9 100644 --- a/Mage.Sets/src/mage/sets/Fallout.java +++ b/Mage.Sets/src/mage/sets/Fallout.java @@ -204,6 +204,10 @@ public final class Fallout extends ExpansionSet { cards.add(new SetCardInfo("Panharmonicon", 237, Rarity.RARE, mage.cards.p.Panharmonicon.class)); cards.add(new SetCardInfo("Path of Ancestry", 279, Rarity.COMMON, mage.cards.p.PathOfAncestry.class)); cards.add(new SetCardInfo("Path to Exile", 169, Rarity.UNCOMMON, mage.cards.p.PathToExile.class)); + cards.add(new SetCardInfo("Piper Wright, Publick Reporter", 36, Rarity.RARE, mage.cards.p.PiperWrightPublickReporter.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Piper Wright, Publick Reporter", 379, Rarity.RARE, mage.cards.p.PiperWrightPublickReporter.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Piper Wright, Publick Reporter", 564, Rarity.RARE, mage.cards.p.PiperWrightPublickReporter.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Piper Wright, Publick Reporter", 907, Rarity.RARE, mage.cards.p.PiperWrightPublickReporter.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Pitiless Plunderer", 187, Rarity.UNCOMMON, mage.cards.p.PitilessPlunderer.class)); cards.add(new SetCardInfo("Plains", 317, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Powder Ganger", 65, Rarity.RARE, mage.cards.p.PowderGanger.class));