From 08e691cc0d7a86b795886915e98fe6dfb4f2de11 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 1 Sep 2020 19:54:50 -0400 Subject: [PATCH] [ZNR] Implemented Legion Angel --- Mage.Sets/src/mage/cards/l/LegionAngel.java | 51 +++++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LegionAngel.java diff --git a/Mage.Sets/src/mage/cards/l/LegionAngel.java b/Mage.Sets/src/mage/cards/l/LegionAngel.java new file mode 100644 index 00000000000..7b4398ea5ad --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LegionAngel.java @@ -0,0 +1,51 @@ +package mage.cards.l; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.WishEffect; +import mage.constants.SubType; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.FilterCard; +import mage.filter.predicate.mageobject.NamePredicate; + +/** + * @author TheElk801 + */ +public final class LegionAngel extends CardImpl { + + private static final FilterCard filter = new FilterCard("card named Legion Angel"); + + static { + filter.add(new NamePredicate("Legion Angel")); + } + + public LegionAngel(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{W}"); + + this.subtype.add(SubType.ANGEL); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(4); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // When Legion Angel enters the battlefield, you may reveal a card you own named Legion Angel from outside the game and put it into your hand. + this.addAbility(new EntersBattlefieldTriggeredAbility(new WishEffect(filter, true, false) + .setText("you may reveal a card you own named Legion Angel from outside the game and put it into your hand"))); + } + + private LegionAngel(final LegionAngel card) { + super(card); + } + + @Override + public LegionAngel copy() { + return new LegionAngel(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 24b5dbda03a..469e4596a89 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -31,6 +31,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Forest", 278, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Island", 269, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Jace, Mirror Mage", 63, Rarity.MYTHIC, mage.cards.j.JaceMirrorMage.class)); + cards.add(new SetCardInfo("Legion Angel", 318, Rarity.RARE, mage.cards.l.LegionAngel.class)); cards.add(new SetCardInfo("Lotus Cobra", 193, Rarity.RARE, mage.cards.l.LotusCobra.class)); cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Murasa Rootgrazer", 229, Rarity.UNCOMMON, mage.cards.m.MurasaRootgrazer.class));