[NEC] Implemented Go-Shintai of Life's Origin

This commit is contained in:
Evan Kranzler 2022-02-08 08:58:13 -05:00
parent 8d8e2017e6
commit 8bdfff89d0
3 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,72 @@
package mage.cards.g;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldThisOrAnotherTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterCard;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.common.FilterEnchantmentCard;
import mage.filter.predicate.permanent.TokenPredicate;
import mage.game.permanent.token.ShrineToken;
import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class GoShintaiOfLifesOrigin extends CardImpl {
private static final FilterCard filter
= new FilterEnchantmentCard("enchantment card from your graveyard");
private static final FilterPermanent filter2
= new FilterControlledPermanent(SubType.SHRINE, "nontoken Shrine");
static {
filter2.add(TokenPredicate.FALSE);
}
public GoShintaiOfLifesOrigin(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{3}{G}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.SHRINE);
this.power = new MageInt(3);
this.toughness = new MageInt(4);
// {W}{U}{B}{R}{G}, {T}: Return target enchantment card from your graveyard to the battlefield.
Ability ability = new SimpleActivatedAbility(
new ReturnFromGraveyardToBattlefieldTargetEffect(),
new ManaCostsImpl<>("{W}{U}{B}{R}{G}")
);
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCardInYourGraveyard(filter));
this.addAbility(ability);
// Whenever Go-Shintai of Life's Origin or another nontoken Shrine enters the battlefield under your control, create a 1/1 colorless Shrine enchantment creature token.
this.addAbility(new EntersBattlefieldThisOrAnotherTriggeredAbility(
new CreateTokenEffect(new ShrineToken()),
filter2, false, true
));
}
private GoShintaiOfLifesOrigin(final GoShintaiOfLifesOrigin card) {
super(card);
}
@Override
public GoShintaiOfLifesOrigin copy() {
return new GoShintaiOfLifesOrigin(this);
}
}

View file

@ -22,6 +22,7 @@ public final class NeonDynastyCommander extends ExpansionSet {
cards.add(new SetCardInfo("Access Denied", 11, Rarity.RARE, mage.cards.a.AccessDenied.class));
cards.add(new SetCardInfo("Aerial Surveyor", 5, Rarity.RARE, mage.cards.a.AerialSurveyor.class));
cards.add(new SetCardInfo("Chishiro, the Shattered Blade", 1, Rarity.MYTHIC, mage.cards.c.ChishiroTheShatteredBlade.class));
cards.add(new SetCardInfo("Go-Shintai of Life's Origin", 37, Rarity.MYTHIC, mage.cards.g.GoShintaiOfLifesOrigin.class));
cards.add(new SetCardInfo("Kotori, Pilot Prodigy", 2, Rarity.MYTHIC, mage.cards.k.KotoriPilotProdigy.class));
cards.add(new SetCardInfo("Myojin of Blooming Dawn", 31, Rarity.RARE, mage.cards.m.MyojinOfBloomingDawn.class));
cards.add(new SetCardInfo("Myojin of Roaring Blades", 36, Rarity.RARE, mage.cards.m.MyojinOfRoaringBlades.class));

View file

@ -0,0 +1,33 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.Arrays;
/**
* @author TheElk801
*/
public final class ShrineToken extends TokenImpl {
public ShrineToken() {
super("Spirit", "1/1 colorless Shrine enchantment creature token");
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
subtype.add(SubType.SHRINE);
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("NEC");
}
public ShrineToken(final ShrineToken token) {
super(token);
}
@Override
public ShrineToken copy() {
return new ShrineToken(this);
}
}