mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
[STX] Implemented Silverquill Command
This commit is contained in:
parent
47333c20c9
commit
12cee3f798
3 changed files with 84 additions and 2 deletions
81
Mage.Sets/src/mage/cards/s/SilverquillCommand.java
Normal file
81
Mage.Sets/src/mage/cards/s/SilverquillCommand.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.|
|
||||
|
|
Loading…
Reference in a new issue