From d54485e4af4a7a4cfe1d8d7f69f304a966fb0587 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 14 Apr 2022 19:54:14 -0400 Subject: [PATCH] [SNC] Implemented Metropolis Angel --- .../src/mage/cards/m/MetropolisAngel.java | 53 +++++++++++++++++++ .../src/mage/sets/StreetsOfNewCapenna.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MetropolisAngel.java diff --git a/Mage.Sets/src/mage/cards/m/MetropolisAngel.java b/Mage.Sets/src/mage/cards/m/MetropolisAngel.java new file mode 100644 index 0000000000..23a1ef7afe --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MetropolisAngel.java @@ -0,0 +1,53 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.common.AttacksWithCreaturesTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.CounterAnyPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MetropolisAngel extends CardImpl { + + private static final FilterCreaturePermanent filter + = new FilterCreaturePermanent("creatures with counters on them"); + + static { + filter.add(CounterAnyPredicate.instance); + } + + public MetropolisAngel(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{U}"); + + this.subtype.add(SubType.ANGEL); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you attack with one or more creatures with counters on them, draw a card. + this.addAbility(new AttacksWithCreaturesTriggeredAbility( + new DrawCardSourceControllerEffect(1), 1, filter + )); + } + + private MetropolisAngel(final MetropolisAngel card) { + super(card); + } + + @Override + public MetropolisAngel copy() { + return new MetropolisAngel(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java index 21cafc3851..9699a4eb45 100644 --- a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java +++ b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java @@ -113,6 +113,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet { cards.add(new SetCardInfo("Mage's Attendant", 21, Rarity.UNCOMMON, mage.cards.m.MagesAttendant.class)); cards.add(new SetCardInfo("Make Disappear", 49, Rarity.COMMON, mage.cards.m.MakeDisappear.class)); cards.add(new SetCardInfo("Mayhem Patrol", 114, Rarity.COMMON, mage.cards.m.MayhemPatrol.class)); + cards.add(new SetCardInfo("Metropolis Angel", 203, Rarity.UNCOMMON, mage.cards.m.MetropolisAngel.class)); cards.add(new SetCardInfo("Mountain", 268, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Mr. Orfeo, the Boulder", 204, Rarity.UNCOMMON, mage.cards.m.MrOrfeoTheBoulder.class)); cards.add(new SetCardInfo("Murder", 88, Rarity.COMMON, mage.cards.m.Murder.class));