[EOE] Implement Scrounge for Eternity

This commit is contained in:
theelk801 2025-07-18 14:51:15 -04:00
parent c04b702801
commit e529a77f80
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,55 @@
package mage.cards.s;
import mage.abilities.costs.common.SacrificeTargetCost;
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.ComparisonType;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.StaticFilters;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import mage.game.permanent.token.LanderToken;
import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ScroungeForEternity extends CardImpl {
private static final FilterCard filter = new FilterCard("creature or Spacecraft card with mana value 5 or less from your graveyard");
static {
filter.add(Predicates.or(
CardType.CREATURE.getPredicate(),
SubType.SPACECRAFT.getPredicate()
));
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 6));
}
public ScroungeForEternity(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
// As an additional cost to cast this spell, sacrifice an artifact or creature.
this.getSpellAbility().addCost(new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE));
// Return target creature or Spacecraft card with mana value 5 or less from your graveyard to the battlefield. Then create a Lander token.
this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
this.getSpellAbility().addEffect(new CreateTokenEffect(new LanderToken()).concatBy("Then"));
}
private ScroungeForEternity(final ScroungeForEternity card) {
super(card);
}
@Override
public ScroungeForEternity copy() {
return new ScroungeForEternity(this);
}
}

View file

@ -279,6 +279,7 @@ public final class EdgeOfEternities extends ExpansionSet {
cards.add(new SetCardInfo("Sami, Wildcat Captain", 301, Rarity.MYTHIC, mage.cards.s.SamiWildcatCaptain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Scour for Scrap", 73, Rarity.UNCOMMON, mage.cards.s.ScourForScrap.class));
cards.add(new SetCardInfo("Scout for Survivors", 33, Rarity.UNCOMMON, mage.cards.s.ScoutForSurvivors.class));
cards.add(new SetCardInfo("Scrounge for Eternity", 114, Rarity.UNCOMMON, mage.cards.s.ScroungeForEternity.class));
cards.add(new SetCardInfo("Seam Rip", 34, Rarity.UNCOMMON, mage.cards.s.SeamRip.class));
cards.add(new SetCardInfo("Secluded Starforge", 257, Rarity.RARE, mage.cards.s.SecludedStarforge.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Secluded Starforge", 316, Rarity.RARE, mage.cards.s.SecludedStarforge.class, NON_FULL_USE_VARIOUS));