From 786b1045ec57084b7c8ca2bcb094af5e8be79272 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 1 Apr 2024 20:48:31 -0400 Subject: [PATCH] [OTJ] Implement Harrier Strix --- Mage.Sets/src/mage/cards/h/HarrierStrix.java | 53 +++++++++++++++++++ .../mage/sets/OutlawsOfThunderJunction.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HarrierStrix.java diff --git a/Mage.Sets/src/mage/cards/h/HarrierStrix.java b/Mage.Sets/src/mage/cards/h/HarrierStrix.java new file mode 100644 index 00000000000..e0595ef0cbd --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HarrierStrix.java @@ -0,0 +1,53 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.abilities.effects.common.TapTargetEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HarrierStrix extends CardImpl { + + public HarrierStrix(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}"); + + this.subtype.add(SubType.BIRD); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // When Harrier Strix enters the battlefield, tap target permanent. + Ability ability = new EntersBattlefieldTriggeredAbility(new TapTargetEffect()); + ability.addTarget(new TargetPermanent()); + this.addAbility(ability); + + // {2}{U}: Draw a card, then discard a card. + this.addAbility(new SimpleActivatedAbility( + new DrawDiscardControllerEffect(1, 1), new ManaCostsImpl<>("{2}{U}") + )); + } + + private HarrierStrix(final HarrierStrix card) { + super(card); + } + + @Override + public HarrierStrix copy() { + return new HarrierStrix(this); + } +} diff --git a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java index 255fac40362..1630f38ac26 100644 --- a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java +++ b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java @@ -106,6 +106,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet { cards.add(new SetCardInfo("Goldvein Hydra", 167, Rarity.MYTHIC, mage.cards.g.GoldveinHydra.class)); cards.add(new SetCardInfo("Great Train Heist", 125, Rarity.RARE, mage.cards.g.GreatTrainHeist.class)); cards.add(new SetCardInfo("Hardbristle Bandit", 168, Rarity.COMMON, mage.cards.h.HardbristleBandit.class)); + cards.add(new SetCardInfo("Harrier Strix", 52, Rarity.COMMON, mage.cards.h.HarrierStrix.class)); cards.add(new SetCardInfo("Hell to Pay", 126, Rarity.RARE, mage.cards.h.HellToPay.class)); cards.add(new SetCardInfo("Hellspur Brute", 127, Rarity.UNCOMMON, mage.cards.h.HellspurBrute.class)); cards.add(new SetCardInfo("Hellspur Posse Boss", 128, Rarity.RARE, mage.cards.h.HellspurPosseBoss.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index bdfc7f27c6c..079eaa2f5c3 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -52436,6 +52436,7 @@ Failed Fording|Outlaws of Thunder Junction|47|C|{1}{U}|Instant|||Return target n Fblthp, Lost on the Range|Outlaws of Thunder Junction|48|R|{1}{U}{U}|Legendary Creature - Homunculus|1|1|Ward {2}$You may look at the top card of your library any time.$The top card of your library has plot. The plot cost is equal to its mana cost.$You may plot nonland cards from the top of your library.| Fleeting Reflection|Outlaws of Thunder Junction|49|U|{1}{U}|Instant|||Target creature you control gains hexproof until end of turn. Untap that creature. Until end of turn, it becomes a copy of up to one other target creature.| Geralf, the Fleshwright|Outlaws of Thunder Junction|50|M|{2}{U}|Legendary Creature - Human Warlock|2|3|Whenever you cast a spell during your turn other than your first spell that turn, create a 2/2 blue and black Zombie Rogue creature token.$Whenever a Zombie enters the battlefield under your control, put a +1/+1 counter on it for each other Zombie that entered the battlefield under your control this turn.| +Harrier Strix|Outlaws of Thunder Junction|52|C|{U}|Creature - Bird|1|1|Flying$When Harrier Strix enters the battlefield, tap target permanent.${2}{U}: Draw a card, then discard a card.| The Key to the Vault|Outlaws of Thunder Junction|54|R|{1}{U}|Legendary Artifact - Equipment|||Whenever equipped creature deals combat damage to a player, look at that many cards from the top of your library. You may exile a nonland card from among them. Put the rest on the bottom of your library in a random order. You may cast the exiled card without paying its mana cost.$Equip {2}{U}| Loan Shark|Outlaws of Thunder Junction|55|C|{3}{U}|Creature - Shark Rogue|3|4|When Loan Shark enters the battlefield, if you've cast two or more spells this turn, draw a card.$Plot {3}{U}| Marauding Sphinx|Outlaws of Thunder Junction|56|U|{3}{U}{U}|Creature - Sphinx Rogue|3|5|Flying, vigilance, ward {2}$Whenever you commit a crime, surveil 2. This ability triggers only once each turn.|