From 92d7aebc3dd35847f629c52f179e9b3c6084ee52 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Mar 2022 06:52:22 -0500 Subject: [PATCH] [SNC] Implemented Brokers Ascendancy --- .../src/mage/cards/b/BrokersAscendancy.java | 43 +++++++++++++++++++ .../src/mage/sets/StreetsOfNewCapenna.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/b/BrokersAscendancy.java diff --git a/Mage.Sets/src/mage/cards/b/BrokersAscendancy.java b/Mage.Sets/src/mage/cards/b/BrokersAscendancy.java new file mode 100644 index 0000000000..f571453c43 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BrokersAscendancy.java @@ -0,0 +1,43 @@ +package mage.cards.b; + +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.effects.common.counter.AddCountersAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.counters.CounterType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BrokersAscendancy extends CardImpl { + + public BrokersAscendancy(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}{U}{W}"); + + // At the beginning of your end step, put a +1/+1 counter on each creature you control and a loyalty counter on each planeswalker you control. + Ability ability = new BeginningOfEndStepTriggeredAbility(new AddCountersAllEffect( + CounterType.P1P1.createInstance(), + StaticFilters.FILTER_CONTROLLED_CREATURE + ), TargetController.YOU, false); + ability.addEffect(new AddCountersAllEffect( + CounterType.LOYALTY.createInstance(), + StaticFilters.FILTER_CONTROLLED_PERMANENT_PLANESWALKER + ).setText("and a loyalty counter on each planeswalker you control")); + this.addAbility(ability); + } + + private BrokersAscendancy(final BrokersAscendancy card) { + super(card); + } + + @Override + public BrokersAscendancy copy() { + return new BrokersAscendancy(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java index 874835d7f8..0341f0b147 100644 --- a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java +++ b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java @@ -21,6 +21,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet { this.hasBoosters = true; this.hasBasicLands = true; + cards.add(new SetCardInfo("Brokers Ascendancy", 170, Rarity.RARE, mage.cards.b.BrokersAscendancy.class)); cards.add(new SetCardInfo("Forest", 280, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Island", 274, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Jetmir's Garden", 250, Rarity.RARE, mage.cards.j.JetmirsGarden.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index fce2555858..c929f70028 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -43917,7 +43917,7 @@ Soulstealer Axe|Alchemy: Innistrad|60|U|{1}|Artifact - Equipment|||Equipped crea Wickerwing Effigy|Alchemy: Innistrad|61|R|{3}|Artifact Creature - Scarecrow|1|4|Defender$You may look at the top card of your library any time.$You may cast creature spells from the top of your library.$Whenever you cast a creature spell from your library, it becomes a black Bird in addition to its other colors and types, has flying, and has base power and toughness 1/1.| Ominous Traveler|Alchemy: Innistrad|62|R|{2}|Creature - Human|1|1|When Ominous Traveler enters the battlefield, draft a card from Ominous Traveler's spellbook. That card perpetually gains "You may spend mana as though it were mana of any color to cast this spell" and "When you cast this spell, return a card named Ominous Traveler you control to its owner's hand."| Forsaken Crossroads|Alchemy: Innistrad|63|R||Land|||Forsaken Crossroads enters the battlefield tapped.$As Forsaken Crossroads enters the battlefield, choose a color.$When Forsaken Crossroads enters the battlefield, scry 1. If you weren't the starting player, you may untap Forsaken Crossroads instead.${T}: Add one mana of the chosen color.| -Broker's Ascendancy|Streets of New Capenna|170|R|{G}{U}{W}|Enchantment|||At the beginning of your end step, put a +1/+1 counter on each creature you control and a loyalty counter on each planeswalker you control.| +Brokers Ascendancy|Streets of New Capenna|170|R|{G}{U}{W}|Enchantment|||At the beginning of your end step, put a +1/+1 counter on each creature you control and a loyalty counter on each planeswalker you control.| Jetmir's Garden|Streets of New Capenna|250|R||Land - Mountain Forest Plains|||({T}: Add {R}, {G}, or {W}.)$Jetmir's Garden enters the battlefield tapped.$Cycling {3}| Raffine's Tower|Streets of New Capenna|254|R||Land - Plains Island Swamp|||({T}: Add {W}, {U}, or {B}.)$Raffine's Tower enters the battlefield tapped.$Cycling {3}| Spara's Headquarters|Streets of New Capenna|257|R||Land - Forest Plains Island|||({T}: Add {G}, {W}, or {U}.)$Spara's Headquarters enters the battlefield tapped.$Cycling {3}|