diff --git a/Mage.Sets/src/mage/cards/s/SilverquillCommand.java b/Mage.Sets/src/mage/cards/s/SilverquillCommand.java new file mode 100644 index 0000000000..419dc8721b --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SilverquillCommand.java @@ -0,0 +1,81 @@ +package mage.cards.s; + +import mage.abilities.Mode; +import mage.abilities.effects.common.DrawCardTargetEffect; +import mage.abilities.effects.common.LoseLifeTargetEffect; +import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect; +import mage.abilities.effects.common.SacrificeEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.Duration; +import mage.filter.FilterCard; +import mage.filter.StaticFilters; +import mage.filter.common.FilterCreatureCard; +import mage.filter.predicate.mageobject.ConvertedManaCostPredicate; +import mage.target.common.TargetCardInYourGraveyard; +import mage.target.common.TargetCreaturePermanent; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SilverquillCommand extends CardImpl { + + private static final FilterCard filter + = new FilterCreatureCard("creature card with mana value 2 or less from your graveyard"); + + static { + filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 3)); + } + + public SilverquillCommand(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{W}{B}"); + + // Choose two — + this.getSpellAbility().getModes().setMinModes(2); + this.getSpellAbility().getModes().setMaxModes(2); + + // • Target creature gets +3/+3 and gains flying until end of turn. + this.getSpellAbility().addEffect(new BoostTargetEffect( + 3, 3 + ).setText("target creature gets +3/+3")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect( + FlyingAbility.getInstance(), Duration.EndOfTurn + ).setText("and gains flying until end of turn")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + + // • Return target creature card with mana value 2 or less from your graveyard to the battlefield. + Mode mode = new Mode(new ReturnFromGraveyardToBattlefieldTargetEffect()); + mode.addTarget(new TargetCardInYourGraveyard(filter)); + this.getSpellAbility().addMode(mode); + + // • Target player draws a card and loses 1 life. + mode = new Mode(new DrawCardTargetEffect(1)); + mode.addEffect(new LoseLifeTargetEffect(1).setText("and loses 1 life")); + this.getSpellAbility().addMode(mode); + + // • Target opponent sacrifices a creature. + mode = new Mode(new SacrificeEffect( + StaticFilters.FILTER_PERMANENT_CREATURE, + 1, "Target opponent" + )); + mode.addTarget(new TargetOpponent()); + this.getSpellAbility().addMode(mode); + } + + private SilverquillCommand(final SilverquillCommand card) { + super(card); + } + + @Override + public SilverquillCommand copy() { + return new SilverquillCommand(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index 832f158e08..1535df3fbd 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -26,6 +26,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { this.ratioBoosterMythic = 7.4; this.maxCardNumberInBooster = 275; - cards.add(new SetCardInfo("Prismari Command", 215, Rarity.RARE, mage.cards.p.PrismariCommand.class)); + cards.add(new SetCardInfo("Prismari Command", 214, Rarity.RARE, mage.cards.p.PrismariCommand.class)); + cards.add(new SetCardInfo("Silverquill Command", 232, Rarity.RARE, mage.cards.s.SilverquillCommand.class)); } } diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 5b43922551..9fd7d8282f 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -40577,7 +40577,7 @@ Poison the Cup|Kaldheim|403|U|{1}{B}{B}|Instant|||Destroy target creature. If th Frost Bite|Kaldheim|404|C|{R}|Snow Instant|||Frost Bite deals 2 damage to target creature or planeswalker. If you control three or more snow permanents, it deals 3 damage instead.| Masked Vandal|Kaldheim|405|C|{1}{G}|Creature - Shapeshifter|1|3|Changeling$When Masked Vandal enters the battlefield, you may exile a creature card from your graveyard. If you do, exile target artifact or enchantment an opponent controls.| Lorehold Command|Strixhaven: School of Mages|199|R|{3}{R}{W}|Instant|||Choose two —$• Create a 3/2 red and white Spirit creature token.$• Creatures you control get +1/+0 and gain indestructible and haste until end of turn.$• Lorehold Command deals 3 damage to any target. Target player gains 3 life.$• Sacrifice a permanent, then draw two cards.| -Prismari Command|Strixhaven: School of Mages|215|R|{1}{U}{R}|Instant|||Choose two —$• Prismari Command deals 2 damage to any target.$• Target player draws two cards, then discards two cards.$• Target player creates a Treasure token.$• Destroy target artifact.| +Prismari Command|Strixhaven: School of Mages|214|R|{1}{U}{R}|Instant|||Choose two —$• Prismari Command deals 2 damage to any target.$• Target player draws two cards, then discards two cards.$• Target player creates a Treasure token.$• Destroy target artifact.| Quandrix Command|Strixhaven: School of Mages|217|R|{1}{G}{U}|Instant|||Choose two —$• Return target creature or planeswalker to its owner's hand.$• Counter target artifact or enchantment spell.$• Put two +1/+1 counters on target creature.$• Target player shuffles up to three target cards from their graveyard into their library.| Silverquill Command|Strixhaven: School of Mages|232|R|{2}{W}{B}|Sorcery|||Choose two —$• Target creature gets +3/+3 and gains flying until end of turn.$• Return target creature card with mana value 2 or less from your graveyard to the battlefield.$• Target player draws a card and loses 1 life.$• Target opponent sacrifices a creature.| Witherbloom Command|Strixhaven: School of Mages|248|R|{B}{G}|Sorcery|||Choose two -$• Target player mills three cards, then you return a land card from your graveyard to your hand.$• Destroy target noncreature, nonland permanent with mana value 2 or less.$• Target creature gets -3/-1 until end of turn.$• Target opponent loses 2 life and you gain 2 life.|