[PIP] Implement Piper Wright, Publick Reporter

This commit is contained in:
Cameron Merkel 2024-04-04 03:01:48 -05:00 committed by Cguy7777
parent 7d1f96c92f
commit f7119e6bc9
2 changed files with 61 additions and 0 deletions

View file

@ -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. <i>(To investigate, create a Clue token. " +
"It's an artifact with \"{2}, Sacrifice this artifact: Draw a card.\")</i>"),
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);
}
}

View file

@ -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));