Implemented Blitz of the Thunder-Raptor

This commit is contained in:
Evan Kranzler 2020-04-09 22:12:52 -04:00
parent 521bd4167f
commit 43482b97b4
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,44 @@
package mage.cards.b;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.ExileTargetIfDiesEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterInstantOrSorceryCard;
import mage.target.common.TargetPlayerOrPlaneswalker;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BlitzOfTheThunderRaptor extends CardImpl {
public static final FilterInstantOrSorceryCard filter
= new FilterInstantOrSorceryCard("instant and sorcery cards");
private static final DynamicValue xValue = new CardsInControllerGraveyardCount(filter);
public BlitzOfTheThunderRaptor(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
// Blitz of the Thunder-Raptor deals damage to target creature or planeswalker equal to the number of instant and sorcery cards in your graveyard. If that creature or planeswalker would die this turn, exile it instead.
this.getSpellAbility().addEffect(new DamageTargetEffect(xValue)
.setText("{this} deals damage to target creature or planeswalker " +
"equal to the number of instant and sorcery cards in your graveyard."));
this.getSpellAbility().addEffect(new ExileTargetIfDiesEffect()
.setText("If that creature or planeswalker would die this turn, exile it instead."));
this.getSpellAbility().addTarget(new TargetPlayerOrPlaneswalker());
}
private BlitzOfTheThunderRaptor(final BlitzOfTheThunderRaptor card) {
super(card);
}
@Override
public BlitzOfTheThunderRaptor copy() {
return new BlitzOfTheThunderRaptor(this);
}
}

View file

@ -68,6 +68,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
cards.add(new SetCardInfo("Archipelagore", 41, Rarity.UNCOMMON, mage.cards.a.Archipelagore.class));
cards.add(new SetCardInfo("Barrier Breach", 145, Rarity.UNCOMMON, mage.cards.b.BarrierBreach.class));
cards.add(new SetCardInfo("Bastion of Remembrance", 73, Rarity.UNCOMMON, mage.cards.b.BastionOfRemembrance.class));
cards.add(new SetCardInfo("Blitz of the Thunder-Raptor", 109, Rarity.UNCOMMON, mage.cards.b.BlitzOfTheThunderRaptor.class));
cards.add(new SetCardInfo("Blood Curdle", 75, Rarity.COMMON, mage.cards.b.BloodCurdle.class));
cards.add(new SetCardInfo("Boneyard Lurker", 178, Rarity.UNCOMMON, mage.cards.b.BoneyardLurker.class));
cards.add(new SetCardInfo("Boon of the Wish-Giver", 43, Rarity.UNCOMMON, mage.cards.b.BoonOfTheWishGiver.class));