diff --git a/Mage.Sets/src/mage/cards/f/FrodoBaggins.java b/Mage.Sets/src/mage/cards/f/FrodoBaggins.java new file mode 100644 index 0000000000..c129180ed0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FrodoBaggins.java @@ -0,0 +1,72 @@ +package mage.cards.f; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldThisOrAnotherTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.Condition; +import mage.abilities.decorator.ConditionalRequirementEffect; +import mage.abilities.effects.common.combat.MustBeBlockedByAtLeastOneSourceEffect; +import mage.abilities.effects.keyword.TheRingTemptsYouEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.game.Game; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FrodoBaggins extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent("legendary creature"); + + static { + filter.add(SuperType.LEGENDARY.getPredicate()); + } + + public FrodoBaggins(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HALFLING); + this.subtype.add(SubType.SCOUT); + this.power = new MageInt(1); + this.toughness = new MageInt(3); + + // Whenever Frodo Baggins or another legendary creature enters the battlefield under your control, the Ring tempts you. + this.addAbility(new EntersBattlefieldThisOrAnotherTriggeredAbility( + new TheRingTemptsYouEffect(), filter, false, true + )); + + // As long as Frodo is your Ring-bearer, it must be blocked if able. + this.addAbility(new SimpleStaticAbility(new ConditionalRequirementEffect( + new MustBeBlockedByAtLeastOneSourceEffect(), FrodoBagginsCondition.instance, + "as long as {this} is your Ring-bearer, it must be blocked if able" + ))); + } + + private FrodoBaggins(final FrodoBaggins card) { + super(card); + } + + @Override + public FrodoBaggins copy() { + return new FrodoBaggins(this); + } +} + +enum FrodoBagginsCondition implements Condition { + instance; + + @Override + public boolean apply(Game game, Ability source) { + // TODO: Implement this + return false; + } +} \ No newline at end of file diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index f218a7b258..9db0bd5dcb 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -25,6 +25,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Aragorn and Arwen, Wed", 287, Rarity.MYTHIC, mage.cards.a.AragornAndArwenWed.class)); cards.add(new SetCardInfo("Bilbo, Retired Burglar", 403, Rarity.UNCOMMON, mage.cards.b.BilboRetiredBurglar.class)); cards.add(new SetCardInfo("Forest", 280, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("Frodo Baggins", 404, Rarity.UNCOMMON, mage.cards.f.FrodoBaggins.class)); cards.add(new SetCardInfo("Frodo, Sauron's Bane", 18, Rarity.RARE, mage.cards.f.FrodoSauronsBane.class)); cards.add(new SetCardInfo("Gandalf the Grey", 207, Rarity.RARE, mage.cards.g.GandalfTheGrey.class)); cards.add(new SetCardInfo("Gollum, Patient Plotter", 84, Rarity.UNCOMMON, mage.cards.g.GollumPatientPlotter.class));