diff --git a/Mage.Sets/src/mage/cards/w/WizardsRockets.java b/Mage.Sets/src/mage/cards/w/WizardsRockets.java new file mode 100644 index 0000000000..ce2bd2eb16 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WizardsRockets.java @@ -0,0 +1,51 @@ +package mage.cards.w; + +import mage.Mana; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.dynamicvalue.common.GetXValue; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.mana.DynamicManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WizardsRockets extends CardImpl { + + public WizardsRockets(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}"); + + // Wizard's Rockets enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {X}, {T}, Sacrifice Wizard's Rockets: Add X mana in any combination of colors. + Ability ability = new DynamicManaAbility( + Mana.AnyMana(1), GetXValue.instance, + new ManaCostsImpl<>("{X}"), "Add X mana in any combination of colors." + ); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + + // When Wizard's Rockets is put into a graveyard from the battlefield, draw a card. + this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1))); + } + + private WizardsRockets(final WizardsRockets card) { + super(card); + } + + @Override + public WizardsRockets copy() { + return new WizardsRockets(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index 89c04ad1b8..706373594b 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -40,6 +40,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("The Shire", 260, Rarity.RARE, mage.cards.t.TheShire.class)); cards.add(new SetCardInfo("Tom Bombadil", 234, Rarity.MYTHIC, mage.cards.t.TomBombadil.class)); cards.add(new SetCardInfo("Trailblazer's Boots", 398, Rarity.RARE, mage.cards.t.TrailblazersBoots.class)); + cards.add(new SetCardInfo("Wizard's Rockets", 400, Rarity.COMMON, mage.cards.w.WizardsRockets.class)); cards.add(new SetCardInfo("You Cannot Pass!", 38, Rarity.UNCOMMON, mage.cards.y.YouCannotPass.class)); cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is implemented