From 08119fa575d5d2f13f9b83e13c3154396472c01b Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 1 Apr 2024 20:57:51 -0400 Subject: [PATCH] [OTP] Implement Geyser Drake --- Mage.Sets/src/mage/cards/g/GeyserDrake.java | 48 +++++++++++++++++++ .../mage/sets/OutlawsOfThunderJunction.java | 1 + Utils/mtg-cards-data.txt | 2 + 3 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GeyserDrake.java diff --git a/Mage.Sets/src/mage/cards/g/GeyserDrake.java b/Mage.Sets/src/mage/cards/g/GeyserDrake.java new file mode 100644 index 00000000000..dcc23648826 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GeyserDrake.java @@ -0,0 +1,48 @@ +package mage.cards.g; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.NotMyTurnCondition; +import mage.abilities.decorator.ConditionalCostModificationEffect; +import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GeyserDrake extends CardImpl { + + public GeyserDrake(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.subtype.add(SubType.DRAKE); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // As long as it's not your turn, spells you cast cost {1} less to cast. + this.addAbility(new SimpleStaticAbility(new ConditionalCostModificationEffect( + new SpellsCostReductionControllerEffect(StaticFilters.FILTER_CARD, 1), + NotMyTurnCondition.instance, "as long as it's not your turn, " + + "spells you cast cost {1} less to cast" + ))); + } + + private GeyserDrake(final GeyserDrake card) { + super(card); + } + + @Override + public GeyserDrake copy() { + return new GeyserDrake(this); + } +} diff --git a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java index 68727021dac..d6139c7e705 100644 --- a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java +++ b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java @@ -98,6 +98,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet { cards.add(new SetCardInfo("Full Steam Ahead", 164, Rarity.UNCOMMON, mage.cards.f.FullSteamAhead.class)); cards.add(new SetCardInfo("Geralf, the Fleshwright", 50, Rarity.MYTHIC, mage.cards.g.GeralfTheFleshwright.class)); cards.add(new SetCardInfo("Getaway Glamer", 14, Rarity.UNCOMMON, mage.cards.g.GetawayGlamer.class)); + cards.add(new SetCardInfo("Geyser Drake", 51, Rarity.COMMON, mage.cards.g.GeyserDrake.class)); cards.add(new SetCardInfo("Ghired, Mirror of the Wilds", 205, Rarity.MYTHIC, mage.cards.g.GhiredMirrorOfTheWilds.class)); cards.add(new SetCardInfo("Gila Courser", 124, Rarity.UNCOMMON, mage.cards.g.GilaCourser.class)); cards.add(new SetCardInfo("Gisa, the Hellraiser", 89, Rarity.MYTHIC, mage.cards.g.GisaTheHellraiser.class, NON_FULL_USE_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 71c2608002f..2995e3bf825 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -52424,6 +52424,7 @@ Stagecoach Security|Outlaws of Thunder Junction|30|C|{4}{W}|Creature - Human Sol Steer Clear|Outlaws of Thunder Junction|31|C|{W}|Instant|||Steer Clear deals 2 damage to target attacking or blocking creature. Steer Clear deals 4 damage to that creature instead if you controlled a Mount as you cast this spell.| Sterling Keykeeper|Outlaws of Thunder Junction|32|C|{1}{W}|Creature - Human Mercenary|2|2|{2}, {T}: Tap target non-Mount creature.| Sterling Supplier|Outlaws of Thunder Junction|33|C|{4}{W}|Creature - Bird Soldier|3|4|Flying$When Sterling Supplier enters the battlefield, put a +1/+1 counter on another target creature you control.| +Take Up the Shield|Outlaws of Thunder Junction|34|C|{1}{W}|Instant|||Put a +1/+1 counter on target creature. It gains lifelink and indestructible until end of turn.| Thunder Lasso|Outlaws of Thunder Junction|35|U|{2}{W}|Artifact - Equipment|||When Thunder Lasso enters the battlefield, attach it to target creature you control.$Equipped creature gets +1/+1.$Whenever equipped creature attacks, tap target creature defending player controls.$Equip {2}| Trained Arynx|Outlaws of Thunder Junction|36|C|{1}{W}|Creature - Cat Beast Mount|3|1|Whenever Trained Arynx attacks while saddled, it gains first strike until end of turn. Scry 1.$Saddle 2| Vengeful Townsfolk|Outlaws of Thunder Junction|37|C|{2}{W}|Creature - Human Citizen|3|3|Whenever one or more other creatures you control die, put a +1/+1 counter on Vengeful Townsfolk.| @@ -52440,6 +52441,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.| +Geyser Drake|Outlaws of Thunder Junction|51|C|{2}{U}|Creature - Drake|2|3|Flying$As long as it's not your turn, spells you cast cost {1} less to cast.| 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}|