mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
[NEO] Implemented Eiganjo Castle
This commit is contained in:
parent
67db598bd2
commit
a85745b694
3 changed files with 82 additions and 1 deletions
80
Mage.Sets/src/mage/cards/e/EiganjoUprising.java
Normal file
80
Mage.Sets/src/mage/cards/e/EiganjoUprising.java
Normal file
|
@ -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.<br>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;
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
|
@ -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.|
|
||||
|
|
Loading…
Reference in a new issue