diff --git a/Mage.Sets/src/mage/cards/c/CacophonyScamp.java b/Mage.Sets/src/mage/cards/c/CacophonyScamp.java new file mode 100644 index 0000000000..d3f8ed0448 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CacophonyScamp.java @@ -0,0 +1,56 @@ +package mage.cards.c; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.DoIfCostPaid; +import mage.abilities.effects.common.counter.ProliferateEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetAnyTarget; + +/** + * @author TheElk801 + */ +public final class CacophonyScamp extends CardImpl { + + private static final DynamicValue xValue = new SourcePermanentPowerCount(); + + public CacophonyScamp(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}"); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.GOBLIN); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Whenever Cacophony Scamp deals combat damage to a player, you may sacrifice it. If you do, proliferate. + this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DoIfCostPaid( + new ProliferateEffect(), new SacrificeSourceCost().setText("sacrifice it") + ), false)); + + // When Cacophony Scamp dies, it deals damage equal to its power to any target. + Ability ability = new DiesSourceTriggeredAbility(new DamageTargetEffect(xValue, "it")); + ability.addTarget(new TargetAnyTarget()); + this.addAbility(ability); + } + + private CacophonyScamp(final CacophonyScamp card) { + super(card); + } + + @Override + public CacophonyScamp copy() { + return new CacophonyScamp(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 318408981d..a5229da4e5 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -34,6 +34,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Bloated Contaminator", 159, Rarity.RARE, mage.cards.b.BloatedContaminator.class)); cards.add(new SetCardInfo("Blue Sun's Twilight", 43, Rarity.RARE, mage.cards.b.BlueSunsTwilight.class)); cards.add(new SetCardInfo("Bonepicker Skirge", 86, Rarity.COMMON, mage.cards.b.BonepickerSkirge.class)); + cards.add(new SetCardInfo("Cacophony Scamp", 124, Rarity.UNCOMMON, mage.cards.c.CacophonyScamp.class)); cards.add(new SetCardInfo("Copperline Gorge", 249, Rarity.RARE, mage.cards.c.CopperlineGorge.class)); cards.add(new SetCardInfo("Darkslick Shores", 372, Rarity.RARE, mage.cards.d.DarkslickShores.class)); cards.add(new SetCardInfo("Dragonwing Glider", 126, Rarity.RARE, mage.cards.d.DragonwingGlider.class));