From 530854dd570e91db3fdf6f8fc6f270f27124489c Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 30 Mar 2021 21:59:07 -0400 Subject: [PATCH] [STX] Implemented Sudden Breakthrough --- .../src/mage/cards/s/SuddenBreakthrough.java | 44 +++++++++++++++++++ .../mage/sets/StrixhavenSchoolOfMages.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SuddenBreakthrough.java diff --git a/Mage.Sets/src/mage/cards/s/SuddenBreakthrough.java b/Mage.Sets/src/mage/cards/s/SuddenBreakthrough.java new file mode 100644 index 00000000000..81847864e5e --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SuddenBreakthrough.java @@ -0,0 +1,44 @@ +package mage.cards.s; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.FirstStrikeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.game.permanent.token.TreasureToken; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SuddenBreakthrough extends CardImpl { + + public SuddenBreakthrough(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}"); + + // Target creature gets +2/+0 and gains first strike until end of turn. + this.getSpellAbility().addEffect(new BoostTargetEffect(2, 0) + .setText("target creature gets +2/+0")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect( + FirstStrikeAbility.getInstance(), Duration.EndOfTurn + ).setText("and gains first strike until end of turn.
")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + + // Create a Treasure token. + this.getSpellAbility().addEffect(new CreateTokenEffect(new TreasureToken())); + } + + private SuddenBreakthrough(final SuddenBreakthrough card) { + super(card); + } + + @Override + public SuddenBreakthrough copy() { + return new SuddenBreakthrough(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index 21d208416c5..e47c22209d0 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -99,6 +99,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Stonebound Mentor", 239, Rarity.COMMON, mage.cards.s.StoneboundMentor.class)); cards.add(new SetCardInfo("Storm-Kiln Artist", 115, Rarity.UNCOMMON, mage.cards.s.StormKilnArtist.class)); cards.add(new SetCardInfo("Study Break", 34, Rarity.COMMON, mage.cards.s.StudyBreak.class)); + cards.add(new SetCardInfo("Sudden Breakthrough", 116, Rarity.COMMON, mage.cards.s.SuddenBreakthrough.class)); cards.add(new SetCardInfo("Swamp", 370, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Thrilling Discovery", 243, Rarity.COMMON, mage.cards.t.ThrillingDiscovery.class)); cards.add(new SetCardInfo("Thunderous Orator", 35, Rarity.UNCOMMON, mage.cards.t.ThunderousOrator.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 0902a4e40e3..f35edff4f5c 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -40623,6 +40623,7 @@ Igneous Inspiration|Strixhaven: School of Mages|107|U|{2}{R}|Sorcery|||Igneous I Illuminate History|Strixhaven: School of Mages|108|R|{2}{R}{R}|Sorcery - Lesson|||Discard any number of cards, then draw that many cards. Then if there are seven or more cards in your graveyard, create a 3/2 red and white Spirit creature token.| Illustrious Historian|Strixhaven: School of Mages|109|C|{1}{R}|Creature - Human Shaman|2|1|{5}, Exile Illustrious Historian from your graveyard: Create a tapped 3/2 red and white Spirit creature token.| Storm-Kiln Artist|Strixhaven: School of Mages|115|U|{3}{R}|Creature - Dwarf Shaman|2|2|Storm-Kiln Artist gets +1/+0 for each artifact you control.$Magecraft — Whenever you cast or copy an instant or sorcery spell, create a Treasure token.| +Sudden Breakthrough|Strixhaven: School of Mages|116|C|{1}{R}|Instant|||Target creature gets +2/+0 and gains first strike until end of turn.$Create a Treasure token.| Dragonsguard Elite|Strixhaven: School of Mages|127|R|{1}{G}|Creature - Human Druid|2|2|Magecraft — Whenever you cast or copy an instant or sorcery spell, put a +1/+1 counter on Dragonsguard Elite.${4}{G}{G}: Double the number of +1/+1 counters on Dragonsguard Elite.| Field Trip|Strixhaven: School of Mages|131|C|{2}{G}|Sorcery|||Search your library for a basic Forest card, put that card onto the battlefield tapped, then shuffle.$Learn.| Awaken the Blood Avatar|Strixhaven: School of Mages|149|M|{6}{B}{R}|Sorcery|||As an additional cost to cast this spell, you may sacrifice any number of creatures. This spell costs {2} less to cast for each creature sacrificed in this way.$Each opponent sacrifices a creature. Create a 3/6 black and red Avatar creature token with haste and "Whenever this creature attacks, it deals 3 damage to each opponent."|