mirror of
https://github.com/correl/mage.git
synced 2025-04-03 09:18:59 -09:00
[LTR] Implement Samwise the Stouthearted
This commit is contained in:
parent
30a530cff0
commit
8585a7c570
2 changed files with 63 additions and 0 deletions
Mage.Sets/src/mage
62
Mage.Sets/src/mage/cards/s/SamwiseTheStouthearted.java
Normal file
62
Mage.Sets/src/mage/cards/s/SamwiseTheStouthearted.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.abilities.effects.keyword.TheRingTemptsYouEffect;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterPermanentCard;
|
||||
import mage.filter.predicate.card.PutIntoGraveFromBattlefieldThisTurnPredicate;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
import mage.watchers.common.CardsPutIntoGraveyardWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SamwiseTheStouthearted extends CardImpl {
|
||||
|
||||
private static final FilterCard filter
|
||||
= new FilterPermanentCard("permanent card in your graveyard that was put there from the battlefield this turn");
|
||||
|
||||
static {
|
||||
filter.add(PutIntoGraveFromBattlefieldThisTurnPredicate.instance);
|
||||
}
|
||||
|
||||
public SamwiseTheStouthearted(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HALFLING);
|
||||
this.subtype.add(SubType.PEASANT);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// When Samwise the Stouthearted enters the battlefield, choose up to one target permanent card in your graveyard that was put there from the battlefield this turn. Return it to your hand. Then the Ring tempts you.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect()
|
||||
.setText("choose up to one target permanent card in your graveyard that was put there from the battlefield this turn. Return it to your hand"));
|
||||
ability.addEffect(new TheRingTemptsYouEffect().concatBy("Then"));
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability, new CardsPutIntoGraveyardWatcher());
|
||||
}
|
||||
|
||||
private SamwiseTheStouthearted(final SamwiseTheStouthearted card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SamwiseTheStouthearted copy() {
|
||||
return new SamwiseTheStouthearted(this);
|
||||
}
|
||||
}
|
|
@ -31,6 +31,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Mountain", 278, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Reprieve", 26, Rarity.UNCOMMON, mage.cards.r.Reprieve.class));
|
||||
cards.add(new SetCardInfo("Samwise the Stouthearted", 28, Rarity.UNCOMMON, mage.cards.s.SamwiseTheStouthearted.class));
|
||||
cards.add(new SetCardInfo("Sauron, the Lidless Eye", 288, Rarity.MYTHIC, mage.cards.s.SauronTheLidlessEye.class));
|
||||
cards.add(new SetCardInfo("Swamp", 276, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("The One Ring", 246, Rarity.MYTHIC, mage.cards.t.TheOneRing.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue