mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[FIN] Implement Garland, Knight of Cornelia
This commit is contained in:
parent
48ebe42138
commit
9f87efe784
3 changed files with 140 additions and 0 deletions
48
Mage.Sets/src/mage/cards/c/ChaosTheEndless.java
Normal file
48
Mage.Sets/src/mage/cards/c/ChaosTheEndless.java
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
package mage.cards.c;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||||
|
import mage.abilities.effects.common.PutOnLibrarySourceEffect;
|
||||||
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class ChaosTheEndless extends CardImpl {
|
||||||
|
|
||||||
|
public ChaosTheEndless(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "");
|
||||||
|
|
||||||
|
this.supertype.add(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.DEMON);
|
||||||
|
this.power = new MageInt(5);
|
||||||
|
this.toughness = new MageInt(5);
|
||||||
|
this.color.setBlack(true);
|
||||||
|
this.color.setRed(true);
|
||||||
|
this.nightCard = true;
|
||||||
|
|
||||||
|
// Flying
|
||||||
|
this.addAbility(FlyingAbility.getInstance());
|
||||||
|
|
||||||
|
// When Chaos dies, put it on the bottom of its owner's library.
|
||||||
|
this.addAbility(new DiesSourceTriggeredAbility(new PutOnLibrarySourceEffect(
|
||||||
|
false, "put it on the bottom of its owner's library"
|
||||||
|
), false));
|
||||||
|
}
|
||||||
|
|
||||||
|
private ChaosTheEndless(final ChaosTheEndless card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ChaosTheEndless copy() {
|
||||||
|
return new ChaosTheEndless(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
90
Mage.Sets/src/mage/cards/g/GarlandKnightOfCornelia.java
Normal file
90
Mage.Sets/src/mage/cards/g/GarlandKnightOfCornelia.java
Normal file
|
|
@ -0,0 +1,90 @@
|
||||||
|
package mage.cards.g;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
|
||||||
|
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||||
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
import mage.abilities.effects.keyword.SurveilEffect;
|
||||||
|
import mage.abilities.keyword.TransformAbility;
|
||||||
|
import mage.cards.Card;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.*;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.players.Player;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class GarlandKnightOfCornelia extends CardImpl {
|
||||||
|
|
||||||
|
public GarlandKnightOfCornelia(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{R}");
|
||||||
|
|
||||||
|
this.secondSideCardClazz = mage.cards.c.ChaosTheEndless.class;
|
||||||
|
|
||||||
|
this.supertype.add(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.HUMAN);
|
||||||
|
this.subtype.add(SubType.KNIGHT);
|
||||||
|
this.power = new MageInt(3);
|
||||||
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
|
// Whenever you cast a noncreature spell, surveil 1.
|
||||||
|
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||||
|
new SurveilEffect(1), StaticFilters.FILTER_SPELL_A_NON_CREATURE, false
|
||||||
|
));
|
||||||
|
|
||||||
|
// {3}{B}{B}{R}{R}: Return this card from your graveyard to the battlefield transformed. Activate only as a sorcery.
|
||||||
|
this.addAbility(new TransformAbility());
|
||||||
|
this.addAbility(new ActivateAsSorceryActivatedAbility(
|
||||||
|
Zone.GRAVEYARD, new GarlandKnightOfCorneliaEffect(), new ManaCostsImpl<>("{3}{B}{B}{R}{R}")
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
private GarlandKnightOfCornelia(final GarlandKnightOfCornelia card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GarlandKnightOfCornelia copy() {
|
||||||
|
return new GarlandKnightOfCornelia(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class GarlandKnightOfCorneliaEffect extends OneShotEffect {
|
||||||
|
|
||||||
|
GarlandKnightOfCorneliaEffect() {
|
||||||
|
super(Outcome.Benefit);
|
||||||
|
staticText = "return this card from your graveyard to the battlefield transformed";
|
||||||
|
}
|
||||||
|
|
||||||
|
private GarlandKnightOfCorneliaEffect(final GarlandKnightOfCorneliaEffect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GarlandKnightOfCorneliaEffect copy() {
|
||||||
|
return new GarlandKnightOfCorneliaEffect(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Ability source) {
|
||||||
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
Card card = Optional
|
||||||
|
.ofNullable(source.getSourceObjectIfItStillExists(game))
|
||||||
|
.filter(Card.class::isInstance)
|
||||||
|
.map(Card.class::cast)
|
||||||
|
.orElse(null);
|
||||||
|
if (player == null || card == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
game.getState().setValue(TransformAbility.VALUE_KEY_ENTER_TRANSFORMED + card.getId(), Boolean.TRUE);
|
||||||
|
return player.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -20,8 +20,10 @@ public final class FinalFantasy extends ExpansionSet {
|
||||||
this.blockName = "Final Fantasy"; // for sorting in GUI
|
this.blockName = "Final Fantasy"; // for sorting in GUI
|
||||||
this.hasBasicLands = false; // temporary
|
this.hasBasicLands = false; // temporary
|
||||||
|
|
||||||
|
cards.add(new SetCardInfo("Chaos, the Endless", 221, Rarity.UNCOMMON, mage.cards.c.ChaosTheEndless.class));
|
||||||
cards.add(new SetCardInfo("Cloud, Planet's Champion", 552, Rarity.MYTHIC, mage.cards.c.CloudPlanetsChampion.class));
|
cards.add(new SetCardInfo("Cloud, Planet's Champion", 552, Rarity.MYTHIC, mage.cards.c.CloudPlanetsChampion.class));
|
||||||
cards.add(new SetCardInfo("Cooking Campsite", 31, Rarity.UNCOMMON, mage.cards.c.CookingCampsite.class));
|
cards.add(new SetCardInfo("Cooking Campsite", 31, Rarity.UNCOMMON, mage.cards.c.CookingCampsite.class));
|
||||||
|
cards.add(new SetCardInfo("Garland, Knight of Cornelia", 221, Rarity.UNCOMMON, mage.cards.g.GarlandKnightOfCornelia.class));
|
||||||
cards.add(new SetCardInfo("Gladiolus Amicitia", 224, Rarity.UNCOMMON, mage.cards.g.GladiolusAmicitia.class));
|
cards.add(new SetCardInfo("Gladiolus Amicitia", 224, Rarity.UNCOMMON, mage.cards.g.GladiolusAmicitia.class));
|
||||||
cards.add(new SetCardInfo("Jumbo Cactuar", 191, Rarity.RARE, mage.cards.j.JumboCactuar.class));
|
cards.add(new SetCardInfo("Jumbo Cactuar", 191, Rarity.RARE, mage.cards.j.JumboCactuar.class));
|
||||||
cards.add(new SetCardInfo("Sazh's Chocobo", 200, Rarity.UNCOMMON, mage.cards.s.SazhsChocobo.class));
|
cards.add(new SetCardInfo("Sazh's Chocobo", 200, Rarity.UNCOMMON, mage.cards.s.SazhsChocobo.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue