[FDN] Implement Elvish Regrower

This commit is contained in:
theelk801 2024-10-29 17:31:13 -04:00
parent 4fb5496433
commit 6d6d1407dd
3 changed files with 47 additions and 3 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.e;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ElvishRegrower extends CardImpl {
public ElvishRegrower(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}");
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.DRUID);
this.power = new MageInt(4);
this.toughness = new MageInt(3);
// When this creature enters, return target permanent card from your graveyard to your hand.
Ability ability = new EntersBattlefieldTriggeredAbility(
new ReturnFromGraveyardToHandTargetEffect(), false
);
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_PERMANENT));
this.addAbility(ability);
}
private ElvishRegrower(final ElvishRegrower card) {
super(card);
}
@Override
public ElvishRegrower copy() {
return new ElvishRegrower(this);
}
}

View file

@ -14,7 +14,6 @@ import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
*
* @author TheElk801
*/
public final class GolgariFindbroker extends CardImpl {
@ -29,8 +28,7 @@ public final class GolgariFindbroker extends CardImpl {
// When Golgari Findbroker enters the battlefield, return target permanent card from your graveyard to your hand.
Ability ability = new EntersBattlefieldTriggeredAbility(
new ReturnFromGraveyardToHandTargetEffect().setText("return target permanent card from your graveyard to your hand"),
false
new ReturnFromGraveyardToHandTargetEffect(), false
);
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_PERMANENT));
this.addAbility(ability);

View file

@ -50,6 +50,7 @@ public final class Foundations extends ExpansionSet {
cards.add(new SetCardInfo("Duress", 606, Rarity.COMMON, mage.cards.d.Duress.class));
cards.add(new SetCardInfo("Elspeth's Smite", 493, Rarity.UNCOMMON, mage.cards.e.ElspethsSmite.class));
cards.add(new SetCardInfo("Elvish Archdruid", 219, Rarity.RARE, mage.cards.e.ElvishArchdruid.class));
cards.add(new SetCardInfo("Elvish Regrower", 104, Rarity.UNCOMMON, mage.cards.e.ElvishRegrower.class));
cards.add(new SetCardInfo("Empyrean Eagle", 239, Rarity.UNCOMMON, mage.cards.e.EmpyreanEagle.class));
cards.add(new SetCardInfo("Erudite Wizard", 37, Rarity.COMMON, mage.cards.e.EruditeWizard.class));
cards.add(new SetCardInfo("Etali, Primal Storm", 194, Rarity.RARE, mage.cards.e.EtaliPrimalStorm.class));