[ECL] Implement Morningtide's Light

This commit is contained in:
theelk801 2025-09-30 12:01:48 -04:00
parent e912e47640
commit 9e464d3af1
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
package mage.cards.m;
import mage.abilities.effects.common.ExileReturnBattlefieldNextEndStepTargetEffect;
import mage.abilities.effects.common.ExileSpellEffect;
import mage.abilities.effects.common.PreventDamageToControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class MorningtidesLight extends CardImpl {
public MorningtidesLight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}");
// Exile any number of target creatures. At the beginning of the next end step, return those cards to the battlefield tapped under their owners' control.
this.getSpellAbility().addEffect(new ExileReturnBattlefieldNextEndStepTargetEffect()
.setText("exile any number of target creatures. At the beginning of the next end step, " +
"return those cards to the battlefield tapped under their owners' control"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, Integer.MAX_VALUE));
// Until your next turn, prevent all damage that would be dealt to you.
this.getSpellAbility().addEffect(new PreventDamageToControllerEffect(Duration.UntilYourNextTurn)
.setText("<br>Until your next turn, prevent all damage that would be dealt to you"));
// Exile Morningtide's Light.
this.getSpellAbility().addEffect(new ExileSpellEffect().concatBy("<br>"));
}
private MorningtidesLight(final MorningtidesLight card) {
super(card);
}
@Override
public MorningtidesLight copy() {
return new MorningtidesLight(this);
}
}

View file

@ -41,6 +41,8 @@ public final class LorwynEclipsed extends ExpansionSet {
cards.add(new SetCardInfo("Hallowed Fountain", 347, Rarity.RARE, mage.cards.h.HallowedFountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Isilu, Carrier of Twilight", 13, Rarity.MYTHIC, mage.cards.i.IsiluCarrierOfTwilight.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Isilu, Carrier of Twilight", 286, Rarity.MYTHIC, mage.cards.i.IsiluCarrierOfTwilight.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Morningtide's Light", 27, Rarity.MYTHIC, mage.cards.m.MorningtidesLight.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Morningtide's Light", 301, Rarity.MYTHIC, mage.cards.m.MorningtidesLight.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Mutable Explorer", 186, Rarity.RARE, mage.cards.m.MutableExplorer.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Mutable Explorer", 327, Rarity.RARE, mage.cards.m.MutableExplorer.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Overgrown Tomb", 266, Rarity.RARE, mage.cards.o.OvergrownTomb.class, NON_FULL_USE_VARIOUS));