diff --git a/Mage.Sets/src/mage/cards/f/FaramirStewardOfGondor.java b/Mage.Sets/src/mage/cards/f/FaramirStewardOfGondor.java new file mode 100644 index 0000000000..37065985e3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FaramirStewardOfGondor.java @@ -0,0 +1,59 @@ +package mage.cards.f; + +import mage.MageInt; +import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.condition.common.MonarchIsSourceControllerCondition; +import mage.abilities.effects.common.BecomesMonarchSourceEffect; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.mageobject.ManaValuePredicate; +import mage.game.permanent.token.HumanSoldierToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FaramirStewardOfGondor extends CardImpl { + + private static final FilterPermanent filter + = new FilterControlledCreaturePermanent("a legendary creature with mana value 4 or greater"); + + static { + filter.add(SuperType.LEGENDARY.getPredicate()); + filter.add(new ManaValuePredicate(ComparisonType.MORE_THAN, 3)); + } + + public FaramirStewardOfGondor(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.NOBLE); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Whenever a legendary creature with mana value 4 or greater enters the battlefield under your control, you become the monarch. + this.addAbility(new EntersBattlefieldControlledTriggeredAbility(new BecomesMonarchSourceEffect(), filter)); + + // At the beginning of your end step, if you're the monarch, create two 1/1 white Human Soldier creature tokens. + this.addAbility(new BeginningOfEndStepTriggeredAbility( + new CreateTokenEffect(new HumanSoldierToken(), 2), TargetController.YOU, + MonarchIsSourceControllerCondition.instance, false + )); + } + + private FaramirStewardOfGondor(final FaramirStewardOfGondor card) { + super(card); + } + + @Override + public FaramirStewardOfGondor copy() { + return new FaramirStewardOfGondor(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TalesOfMiddleEarthCommander.java b/Mage.Sets/src/mage/sets/TalesOfMiddleEarthCommander.java index 510a226eb7..69a7f431a7 100644 --- a/Mage.Sets/src/mage/sets/TalesOfMiddleEarthCommander.java +++ b/Mage.Sets/src/mage/sets/TalesOfMiddleEarthCommander.java @@ -82,6 +82,7 @@ public final class TalesOfMiddleEarthCommander extends ExpansionSet { cards.add(new SetCardInfo("Extract from Darkness", 266, Rarity.UNCOMMON, mage.cards.e.ExtractFromDarkness.class)); cards.add(new SetCardInfo("Fact or Fiction", 190, Rarity.UNCOMMON, mage.cards.f.FactOrFiction.class)); cards.add(new SetCardInfo("Faithless Looting", 215, Rarity.COMMON, mage.cards.f.FaithlessLooting.class)); + cards.add(new SetCardInfo("Faramir, Steward of Gondor", 54, Rarity.RARE, mage.cards.f.FaramirStewardOfGondor.class)); cards.add(new SetCardInfo("Farhaven Elf", 243, Rarity.COMMON, mage.cards.f.FarhavenElf.class)); cards.add(new SetCardInfo("Farseek", 244, Rarity.COMMON, mage.cards.f.Farseek.class)); cards.add(new SetCardInfo("Fealty to the Realm", 21, Rarity.RARE, mage.cards.f.FealtyToTheRealm.class));