diff --git a/Mage.Sets/src/mage/cards/p/PumpkinBombs.java b/Mage.Sets/src/mage/cards/p/PumpkinBombs.java new file mode 100644 index 00000000000..fd500622f07 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PumpkinBombs.java @@ -0,0 +1,52 @@ +package mage.cards.p; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.DiscardTargetCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.CountersSourceCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.TargetPlayerGainControlSourceEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInHand; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PumpkinBombs extends CardImpl { + + private static final DynamicValue xValue = new CountersSourceCount(CounterType.FUSE); + + public PumpkinBombs(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{R}"); + + // {T}, Discard two cards: Draw three cards, then put a fuse counter on this artifact. It deals damage equal to the number of fuse counters on it to target opponent. They gain control of this artifact. + Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(3), new TapSourceCost()); + ability.addCost(new DiscardTargetCost(new TargetCardInHand(2, StaticFilters.FILTER_CARD_CARDS))); + ability.addEffect(new AddCountersSourceEffect(CounterType.FUSE.createInstance()).concatBy(", then")); + ability.addEffect(new DamageTargetEffect(xValue) + .setText("it deals damage equal to the number of fuse counters on it to target opponent")); + ability.addEffect(new TargetPlayerGainControlSourceEffect("they")); + ability.addTarget(new TargetOpponent()); + this.addAbility(ability); + } + + private PumpkinBombs(final PumpkinBombs card) { + super(card); + } + + @Override + public PumpkinBombs copy() { + return new PumpkinBombs(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarvelsSpiderManEternal.java b/Mage.Sets/src/mage/sets/MarvelsSpiderManEternal.java index dc1f56e8146..2676edd4e49 100644 --- a/Mage.Sets/src/mage/sets/MarvelsSpiderManEternal.java +++ b/Mage.Sets/src/mage/sets/MarvelsSpiderManEternal.java @@ -22,6 +22,7 @@ public final class MarvelsSpiderManEternal extends ExpansionSet { cards.add(new SetCardInfo("Doc Ock, Evil Inventor", 24, Rarity.RARE, mage.cards.d.DocOckEvilInventor.class)); cards.add(new SetCardInfo("Grasping Tentacles", 21, Rarity.RARE, mage.cards.g.GraspingTentacles.class)); + cards.add(new SetCardInfo("Pumpkin Bombs", 26, Rarity.RARE, mage.cards.p.PumpkinBombs.class)); cards.add(new SetCardInfo("Venom, Deadly Devourer", 22, Rarity.RARE, mage.cards.v.VenomDeadlyDevourer.class)); } }