From 399de5f8de55651f8a7225e7330c19cc15ac9aa5 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 1 Apr 2024 20:52:13 -0400 Subject: [PATCH] [OTJ] Implement Stagecoach Security --- .../src/mage/cards/s/StagecoachSecurity.java | 54 +++++++++++++++++++ .../mage/sets/OutlawsOfThunderJunction.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/StagecoachSecurity.java diff --git a/Mage.Sets/src/mage/cards/s/StagecoachSecurity.java b/Mage.Sets/src/mage/cards/s/StagecoachSecurity.java new file mode 100644 index 00000000000..8e5fef8ac6b --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/StagecoachSecurity.java @@ -0,0 +1,54 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.PlotAbility; +import mage.abilities.keyword.VigilanceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class StagecoachSecurity extends CardImpl { + + public StagecoachSecurity(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(4); + this.toughness = new MageInt(5); + + // When Stagecoach Security enters the battlefield, creatures you control get +1/+1 and gain vigilance until end of turn. + Ability ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect( + 1, 1, Duration.EndOfTurn + ).setText("creatures you control get +1/+1")); + ability.addEffect(new GainAbilityControlledEffect( + VigilanceAbility.getInstance(), Duration.EndOfTurn, + StaticFilters.FILTER_CONTROLLED_CREATURE + ).setText("and gain vigilance until end of turn")); + this.addAbility(ability); + + // Plot {3}{W} + this.addAbility(new PlotAbility("{3}{W}")); + } + + private StagecoachSecurity(final StagecoachSecurity card) { + super(card); + } + + @Override + public StagecoachSecurity copy() { + return new StagecoachSecurity(this); + } +} diff --git a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java index 546efd631bf..b3065fe591a 100644 --- a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java +++ b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java @@ -212,6 +212,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet { cards.add(new SetCardInfo("Spinewoods Armadillo", 182, Rarity.UNCOMMON, mage.cards.s.SpinewoodsArmadillo.class)); cards.add(new SetCardInfo("Spirebluff Canal", 270, Rarity.RARE, mage.cards.s.SpirebluffCanal.class)); cards.add(new SetCardInfo("Spring Splasher", 69, Rarity.COMMON, mage.cards.s.SpringSplasher.class)); + cards.add(new SetCardInfo("Stagecoach Security", 30, Rarity.COMMON, mage.cards.s.StagecoachSecurity.class)); cards.add(new SetCardInfo("Steer Clear", 31, Rarity.COMMON, mage.cards.s.SteerClear.class)); cards.add(new SetCardInfo("Step Between Worlds", 70, Rarity.RARE, mage.cards.s.StepBetweenWorlds.class)); cards.add(new SetCardInfo("Sterling Keykeeper", 32, Rarity.COMMON, mage.cards.s.SterlingKeykeeper.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 08f73019043..ca9d7d8620a 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -52420,6 +52420,7 @@ Requisition Raid|Outlaws of Thunder Junction|26|U|{W}|Sorcery|||Spree$+ {1} -- D Rustler Rampage|Outlaws of Thunder Junction|27|U|{W}|Instant|||Spree$+ {1} -- Untap all creatures target player controls.$+ {1} -- Target creature gains double strike until end of turn.| Shepherd of the Clouds|Outlaws of Thunder Junction|28|U|{4}{W}|Creature - Pegasus|4|3|Flying, vigilance$When Shepherd of the Clouds enters the battlefield, return target permanent card with mana value 3 or less from your graveyard to your hand. Return that card to the battlefield instead if you control a Mount.| Sheriff of Safe Passage|Outlaws of Thunder Junction|29|U|{2}{W}|Creature - Human Knight|0|0|Sheriff of Safe Passage enters the battlefield with a +1/+1 counter on it plus an additional +1/+1 counter on it for each other creature you control.$Plot {1}{W}| +Stagecoach Security|Outlaws of Thunder Junction|30|C|{4}{W}|Creature - Human Soldier|4|5|When Stagecoach Security enters the battlefield, creatures you control get +1/+1 and gain vigilance until end of turn.$Plot {3}{W}| 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.| 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}|