diff --git a/Mage.Sets/src/mage/cards/r/Resculpt.java b/Mage.Sets/src/mage/cards/r/Resculpt.java new file mode 100644 index 0000000000..c1c9009218 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/Resculpt.java @@ -0,0 +1,67 @@ +package mage.cards.r; + +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.Zone; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.game.permanent.token.PrismariToken; +import mage.players.Player; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Resculpt extends CardImpl { + + public Resculpt(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Exile target artifact or creature. Its controller creates a 4/4 blue and red Elemental creature token. + this.getSpellAbility().addEffect(new ResculptEffect()); + } + + private Resculpt(final Resculpt card) { + super(card); + } + + @Override + public Resculpt copy() { + return new Resculpt(this); + } +} + +class ResculptEffect extends OneShotEffect { + + ResculptEffect() { + super(Outcome.PutCreatureInPlay); + staticText = "Exile target artifact or creature. " + + "Its controller creates a 4/4 blue and red Elemental creature token"; + } + + private ResculptEffect(final ResculptEffect effect) { + super(effect); + } + + @Override + public ResculptEffect copy() { + return new ResculptEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Permanent permanent = game.getPermanent(source.getFirstTarget()); + if (permanent == null) { + return false; + } + Player player = game.getPlayer(permanent.getControllerId()); + player.moveCards(permanent, Zone.EXILED, source, game); + new PrismariToken().putOntoBattlefield(1, game, source, player.getId()); + return true; + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index 4f363434fa..21d208416c 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -86,6 +86,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Reconstruct History", 222, Rarity.UNCOMMON, mage.cards.r.ReconstructHistory.class)); cards.add(new SetCardInfo("Reduce to Memory", 25, Rarity.UNCOMMON, mage.cards.r.ReduceToMemory.class)); cards.add(new SetCardInfo("Relic Sloth", 223, Rarity.COMMON, mage.cards.r.RelicSloth.class)); + cards.add(new SetCardInfo("Resculpt", 51, Rarity.COMMON, mage.cards.r.Resculpt.class)); cards.add(new SetCardInfo("Returned Pastcaller", 224, Rarity.UNCOMMON, mage.cards.r.ReturnedPastcaller.class)); cards.add(new SetCardInfo("Rip Apart", 381, Rarity.UNCOMMON, mage.cards.r.RipApart.class)); cards.add(new SetCardInfo("Rise of Extus", 226, Rarity.COMMON, mage.cards.r.RiseOfExtus.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 32c66b9449..0902a4e40e 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -40607,6 +40607,7 @@ Bury in Books|Strixhaven: School of Mages|39|C|{4}{U}|Instant|||This spell costs Curate|Strixhaven: School of Mages|40|C|{1}{U}|Instant|||Look at the top two cards of your library. Put any number of them into your graveyard and the rest back on top of your library in any order.$Draw a card.| Multiple Choice|Strixhaven: School of Mages|48|R|{X}{U}|Sorcery|||If X is 1, scry 1, then draw a card.$If X is 2, you may choose a player. They return a creature they control to its owner's hand.$If X is 3, create a 4/4 blue and red Elemental creature token.$If X is 4 or more, do all of the above.| Pop Quiz|Strixhaven: School of Mages|49|C|{2}{U}|Instant|||Draw a card.$Learn.| +Resculpt|Strixhaven: School of Mages|51|C|{1}{U}|Instant|||Exile target artifact or creature. Its controller creates a 4/4 blue and red Elemental creature token.| Waterfall Aerialist|Strixhaven: School of Mages|61|C|{3}{U}|Creature - Djinn Wizard|3|1|Flying$Ward {2}| Confront the Past|Strixhaven: School of Mages|67|R|{X}{B}|Sorcery - Lesson|||Choose one —$• Return target planeswalker card with mana value X or less from your graveyard to the battlefield.$• Remove twice X loyalty counters from target planeswalker an opponent controls.| Go Blank|Strixhaven: School of Mages|72|U|{2}{B}|Sorcery|||Target player discards two cards. Then exile all cards from that player's graveyard.|