Skip to content

Commit

Permalink
[FDN] Implement Sun-Blessed Healer
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Oct 31, 2024
1 parent 76d98c6 commit 4c260d7
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
66 changes: 66 additions & 0 deletions Mage.Sets/src/mage/cards/s/SunBlessedHealer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package mage.cards.s;

import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.KickedCondition;
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
import mage.abilities.keyword.KickerAbility;
import mage.abilities.keyword.LifelinkAbility;
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.common.FilterNonlandCard;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import mage.filter.predicate.mageobject.PermanentPredicate;
import mage.target.common.TargetCardInYourGraveyard;

import java.util.UUID;

/**
* @author TheElk801
*/
public final class SunBlessedHealer extends CardImpl {

private static final FilterCard filter
= new FilterNonlandCard("nonland permanent card with mana value 2 or less from your graveyard");

static {
filter.add(PermanentPredicate.instance);
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 3));
}

public SunBlessedHealer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");

this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.CLERIC);
this.power = new MageInt(3);
this.toughness = new MageInt(1);

// Kicker {1}{W}
this.addAbility(new KickerAbility("{1}{W}"));

// Lifelink
this.addAbility(LifelinkAbility.getInstance());

// When this creature enters, if it was kicked, return target nonland permanent card with mana value 2 or less from your graveyard to the battlefield.
Ability ability = new EntersBattlefieldTriggeredAbility(
new ReturnFromGraveyardToBattlefieldTargetEffect()
).withInterveningIf(KickedCondition.ONCE);
ability.addTarget(new TargetCardInYourGraveyard());
this.addAbility(ability);
}

private SunBlessedHealer(final SunBlessedHealer card) {
super(card);
}

@Override
public SunBlessedHealer copy() {
return new SunBlessedHealer(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/Foundations.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ private Foundations() {
cards.add(new SetCardInfo("Stromkirk Bloodthief", 185, Rarity.UNCOMMON, mage.cards.s.StromkirkBloodthief.class));
cards.add(new SetCardInfo("Stromkirk Noble", 632, Rarity.RARE, mage.cards.s.StromkirkNoble.class));
cards.add(new SetCardInfo("Strongbox Raider", 96, Rarity.UNCOMMON, mage.cards.s.StrongboxRaider.class));
cards.add(new SetCardInfo("Sun-Blessed Healer", 25, Rarity.UNCOMMON, mage.cards.s.SunBlessedHealer.class));
cards.add(new SetCardInfo("Surrak, the Hunt Caller", 647, Rarity.RARE, mage.cards.s.SurrakTheHuntCaller.class));
cards.add(new SetCardInfo("Swamp", 276, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Swiftblade Vindicator", 246, Rarity.RARE, mage.cards.s.SwiftbladeVindicator.class));
Expand Down

0 comments on commit 4c260d7

Please sign in to comment.