From c8a20c7666987442c56114e4beaf47e7fdf69dc3 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 30 Oct 2022 18:52:13 -0400 Subject: [PATCH] [BRO] Implemented Urza's Command --- Mage.Sets/src/mage/cards/u/UrzasCommand.java | 55 ++++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/u/UrzasCommand.java diff --git a/Mage.Sets/src/mage/cards/u/UrzasCommand.java b/Mage.Sets/src/mage/cards/u/UrzasCommand.java new file mode 100644 index 00000000000..8ff5c59d39f --- /dev/null +++ b/Mage.Sets/src/mage/cards/u/UrzasCommand.java @@ -0,0 +1,55 @@ +package mage.cards.u; + +import mage.abilities.Mode; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.continuous.BoostAllEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; +import mage.game.permanent.token.KarnConstructToken; +import mage.game.permanent.token.PowerstoneToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class UrzasCommand extends CardImpl { + + public UrzasCommand(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}{U}"); + + // Choose two -- + this.getSpellAbility().getModes().setMinModes(2); + this.getSpellAbility().getModes().setMaxModes(2); + + // * Creatures you don't control get -2/-0 until end of turn. + this.getSpellAbility().addEffect(new BoostAllEffect( + -2, -0, Duration.EndOfTurn, + StaticFilters.FILTER_CREATURES_YOU_DONT_CONTROL, false + )); + + // * Create a tapped Powerstone token. + this.getSpellAbility().addMode(new Mode(new CreateTokenEffect(new PowerstoneToken(), 1, true))); + + // * Create a tapped 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control." + this.getSpellAbility().addMode(new Mode(new CreateTokenEffect(new KarnConstructToken(), 1, true))); + + // * Scry 1, then draw a card. + this.getSpellAbility().addMode(new Mode(new ScryEffect(1, false)) + .addEffect(new DrawCardSourceControllerEffect(1).concatBy(", then"))); + } + + private UrzasCommand(final UrzasCommand card) { + super(card); + } + + @Override + public UrzasCommand copy() { + return new UrzasCommand(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index d755a5b2e65..b224ed678f4 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -68,6 +68,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Titania, Voice of Gaea", 193, Rarity.MYTHIC, mage.cards.t.TitaniaVoiceOfGaea.class)); cards.add(new SetCardInfo("Tocasia's Onulet", 39, Rarity.COMMON, mage.cards.t.TocasiasOnulet.class)); cards.add(new SetCardInfo("Underground River", 267, Rarity.RARE, mage.cards.u.UndergroundRiver.class)); + cards.add(new SetCardInfo("Urza's Command", 70, Rarity.RARE, mage.cards.u.UrzasCommand.class)); cards.add(new SetCardInfo("Urza, Lord Protector", 225, Rarity.MYTHIC, mage.cards.u.UrzaLordProtector.class)); cards.add(new SetCardInfo("Urza, Planeswalker", "238b", Rarity.MYTHIC, mage.cards.u.UrzaPlaneswalker.class)); cards.add(new SetCardInfo("Urza, Powerstone Prodigy", 69, Rarity.UNCOMMON, mage.cards.u.UrzaPowerstoneProdigy.class));