diff --git a/Mage.Sets/src/mage/cards/b/BladeOfTheSwarm.java b/Mage.Sets/src/mage/cards/b/BladeOfTheSwarm.java new file mode 100644 index 00000000000..75aa25c944e --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BladeOfTheSwarm.java @@ -0,0 +1,60 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.Mode; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.PutOnLibraryTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.WarpAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.FilterCard; +import mage.filter.predicate.mageobject.AbilityPredicate; +import mage.target.common.TargetCardInExile; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BladeOfTheSwarm extends CardImpl { + + private static final FilterCard filter = new FilterCard("exiled card with warp"); + + static { + filter.add(new AbilityPredicate(WarpAbility.class)); + } + + public BladeOfTheSwarm(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.INSECT); + this.subtype.add(SubType.ASSASSIN); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // When this creature enters, choose one -- + // * Put two +1/+1 counters on this creature. + Ability ability = new EntersBattlefieldTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)) + ); + + // * Put target exiled card with warp on the bottom of its owner's library. + ability.addMode(new Mode(new PutOnLibraryTargetEffect(false)) + .addTarget(new TargetCardInExile(filter))); + this.addAbility(ability); + } + + private BladeOfTheSwarm(final BladeOfTheSwarm card) { + super(card); + } + + @Override + public BladeOfTheSwarm copy() { + return new BladeOfTheSwarm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/EdgeOfEternities.java b/Mage.Sets/src/mage/sets/EdgeOfEternities.java index 5019f8e098e..a5999febd97 100644 --- a/Mage.Sets/src/mage/sets/EdgeOfEternities.java +++ b/Mage.Sets/src/mage/sets/EdgeOfEternities.java @@ -52,6 +52,7 @@ public final class EdgeOfEternities extends ExpansionSet { cards.add(new SetCardInfo("Biomechan Engineer", 213, Rarity.UNCOMMON, mage.cards.b.BiomechanEngineer.class)); cards.add(new SetCardInfo("Biotech Specialist", 214, Rarity.RARE, mage.cards.b.BiotechSpecialist.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Biotech Specialist", 347, Rarity.RARE, mage.cards.b.BiotechSpecialist.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Blade of the Swarm", 90, Rarity.UNCOMMON, mage.cards.b.BladeOfTheSwarm.class)); cards.add(new SetCardInfo("Breeding Pool", 251, Rarity.RARE, mage.cards.b.BreedingPool.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Breeding Pool", 278, Rarity.RARE, mage.cards.b.BreedingPool.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Breeding Pool", 373, Rarity.RARE, mage.cards.b.BreedingPool.class, NON_FULL_USE_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 19de762ad85..e479234c553 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -59170,6 +59170,7 @@ Uthros Scanship|Edge of Eternities|85|U|{3}{U}|Artifact - Spacecraft|||When this Weftwalking|Edge of Eternities|86|M|{4}{U}{U}|Enchantment|||When this enchantment enters, if you cast it, shuffle your hand and graveyard into your library, then draw seven cards.$The first spell each player casts during each of their turns may be cast without paying its mana cost.| Alpharael, Stonechosen|Edge of Eternities|87|M|{3}{B}{B}|Legendary Creature - Human Cleric|3|3|Ward--Discard a card at random.$Void -- Whenever Alpharael attacks, if a nonland permanent left the battlefield this turn or a spell was warped this turn, defending player loses half their life, rounded up.| Archenemy's Charm|Edge of Eternities|88|R|{B}{B}{B}|Instant|||Choose one --$* Exile target creature or planeswalker.$* Return one or two target creature and/or planeswalker cards from your graveyard to your hand.$* Put two +1/+1 counters on target creature you control. It gains lifelink until end of turn.| +Blade of the Swarm|Edge of Eternities|90|U|{3}{B}|Creature - Insect Assassin|3|1|When this creature enters, choose one --$* Put two +1/+1 counters on this creature.$* Put target exiled card with warp on the bottom of its owner's library.| Chorale of the Void|Edge of Eternities|91|R|{3}{B}|Enchantment - Aura|||Enchant creature you control$Whenever enchanted creature attacks, put target creature card from defending player's graveyard onto the battlefield under your control tapped and attacking.$Void -- At the beginning of your end step, sacrifice this Aura unless a nonland permanent left the battlefield this turn or a spell was warped this turn.| Decode Transmissions|Edge of Eternities|94|C|{2}{B}|Sorcery|||You draw two cards and lose 2 life.$Void -- If a nonland permanent left the battlefield this turn or a spell was warped this turn, instead you draw two cards and each opponent loses 2 life.| Dubious Delicacy|Edge of Eternities|96|U|{2}{B}|Artifact - Food|||Flash$When this artifact enters, up to one target creature gets -3/-3 until end of turn.${2}, {T}, Sacrifice this artifact: You gain 3 life.${2}, {T}, Sacrifice this artifact: Target opponent loses 3 life.|