diff --git a/Mage.Sets/src/mage/cards/e/EiganjoUprising.java b/Mage.Sets/src/mage/cards/e/EiganjoUprising.java new file mode 100644 index 0000000000..eb19f579af --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EiganjoUprising.java @@ -0,0 +1,80 @@ +package mage.cards.e; + +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.HasteAbility; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.game.Game; +import mage.game.permanent.token.SamuraiToken; +import mage.game.permanent.token.Token; +import mage.target.targetpointer.FixedTargets; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class EiganjoUprising extends CardImpl { + + public EiganjoUprising(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{R}{W}"); + + // Create X 2/2 white Samurai creature tokens with vigilance. They gain menace and haste until end of turn. + // Each opponent creates X minus one 2/2 white Samurai creature tokens with vigilance. + this.getSpellAbility().addEffect(new EiganjoUprisingEffect()); + } + + private EiganjoUprising(final EiganjoUprising card) { + super(card); + } + + @Override + public EiganjoUprising copy() { + return new EiganjoUprising(this); + } +} + +class EiganjoUprisingEffect extends OneShotEffect { + + EiganjoUprisingEffect() { + super(Outcome.Benefit); + staticText = "create X 2/2 white Samurai creature tokens with vigilance. " + + "They gain menace and haste until end of turn.
Each opponent " + + "creates X minus one 2/2 white Samurai creature tokens with vigilance"; + } + + private EiganjoUprisingEffect(final EiganjoUprisingEffect effect) { + super(effect); + } + + @Override + public EiganjoUprisingEffect copy() { + return new EiganjoUprisingEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + int amount = source.getManaCostsToPay().getX(); + if (amount < 1) { + return false; + } + Token token = new SamuraiToken(); + token.putOntoBattlefield(amount, game, source); + game.addEffect(new GainAbilityTargetEffect(new MenaceAbility(false)) + .setTargetPointer(new FixedTargets(token, game)), source); + game.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance()) + .setTargetPointer(new FixedTargets(token, game)), source); + if (amount < 2) { + return true; + } + for (UUID opponentId : game.getOpponents(source.getControllerId())) { + token.putOntoBattlefield(amount - 1, game, source, opponentId); + } + return true; + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index d1394894f4..4e6f3fe486 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -44,6 +44,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Circuit Mender", 242, Rarity.UNCOMMON, mage.cards.c.CircuitMender.class)); cards.add(new SetCardInfo("Covert Technician", 49, Rarity.UNCOMMON, mage.cards.c.CovertTechnician.class)); cards.add(new SetCardInfo("Dokuchi Shadow-Walker", 94, Rarity.COMMON, mage.cards.d.DokuchiShadowWalker.class)); + cards.add(new SetCardInfo("Eiganjo Uprising", 484, Rarity.RARE, mage.cards.e.EiganjoUprising.class)); cards.add(new SetCardInfo("Enthusiastic Mechanaut", 218, Rarity.UNCOMMON, mage.cards.e.EnthusiasticMechanaut.class)); cards.add(new SetCardInfo("Era of Enlightenment", 11, Rarity.COMMON, mage.cards.e.EraOfEnlightenment.class)); cards.add(new SetCardInfo("Essence Capture", 52, Rarity.UNCOMMON, mage.cards.e.EssenceCapture.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 56759073a8..0a21f20300 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -43638,6 +43638,6 @@ Swamp|Kamigawa: Neon Dynasty|287|C||Basic Land - Swamp|||({T}: Add {B}.)| Mountain|Kamigawa: Neon Dynasty|289|C||Basic Land - Mountain|||({T}: Add {R}.)| Forest|Kamigawa: Neon Dynasty|291|C||Basic Land - Forest|||({T}: Add {G}.)| March of Otherworldly Light|Kamigawa: Neon Dynasty|369|R|{X}{W}|Instant|||As an additional cost to cast this spell, you may exile any number of white cards from your hand. This spell costs {2} less to cast for each card exiled this way.$Exile target artifact, creature, or enchantment with mana value X or less.| -Eiganjo Uprising|Kamigawa: Neon Dynasty|484|R|{X}{R}{W}|Sorcery|||Create X 2/2 white Samurai creature tokens with vigilance| +Eiganjo Uprising|Kamigawa: Neon Dynasty|484|R|{X}{R}{W}|Sorcery|||Create X 2/2 white Samurai creature tokens with vigilance. They gain menace and haste until end of turn.$Each opponent creates X minus one 2/2 white Samurai creature tokens with vigilance.| Chishiro, the Shattered Blade|Neon Dynasty Commander|1|M|{2}{R}{G}|Legendary Creature - Snake Samurai|4|4|Whenever an Aura or Equipment enters the battlefield under your control, create a 2/2 red Spirit creature token.$At the beginning of your end step, put a +1/+1 counter on each modified creature you control.| Kotori, Pilot Prodigy|Neon Dynasty Commander|2|M|{1}{W}{U}|Legendary Creature - Moonfolk Pilot|2|4|Vehicles you control have crew 2.$At the beginning of combat on your turn, target artifact creature you control gains lifelink and vigilance until end of turn.|