diff --git a/Mage.Sets/src/mage/cards/f/FountainOfIchor.java b/Mage.Sets/src/mage/cards/f/FountainOfIchor.java new file mode 100644 index 0000000000..0fee79a11c --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FountainOfIchor.java @@ -0,0 +1,62 @@ +package mage.cards.f; + +import mage.MageInt; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect; +import mage.abilities.mana.AnyColorManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.game.permanent.token.TokenImpl; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FountainOfIchor extends CardImpl { + + public FountainOfIchor(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}"); + + // {T}: Add one mana of any color. + this.addAbility(new AnyColorManaAbility()); + + // {3}: Fountain of Ichor becomes a 3/3 Dinosaur artifact creature until end of turn. + this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect( + new FountainOfIchorToken(), "", Duration.EndOfTurn + ), new GenericManaCost(3))); + } + + private FountainOfIchor(final FountainOfIchor card) { + super(card); + } + + @Override + public FountainOfIchor copy() { + return new FountainOfIchor(this); + } +} + +class FountainOfIchorToken extends TokenImpl { + + FountainOfIchorToken() { + super("", "3/3 Dinosaur artifact creature"); + cardType.add(CardType.CREATURE); + cardType.add(CardType.ARTIFACT); + subtype.add(SubType.DINOSAUR); + power = new MageInt(3); + toughness = new MageInt(3); + } + + private FountainOfIchorToken(final FountainOfIchorToken token) { + super(token); + } + + public FountainOfIchorToken copy() { + return new FountainOfIchorToken(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 29a200bf35..72e22d8aca 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -90,6 +90,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Force of Vigor", 164, Rarity.RARE, mage.cards.f.ForceOfVigor.class)); cards.add(new SetCardInfo("Force of Virtue", 10, Rarity.RARE, mage.cards.f.ForceOfVirtue.class)); cards.add(new SetCardInfo("Forgotten Cave", 239, Rarity.UNCOMMON, mage.cards.f.ForgottenCave.class)); + cards.add(new SetCardInfo("Fountain of Ichor", 223, Rarity.COMMON, mage.cards.f.FountainOfIchor.class)); cards.add(new SetCardInfo("Frostwalk Bastion", 240, Rarity.UNCOMMON, mage.cards.f.FrostwalkBastion.class)); cards.add(new SetCardInfo("Frostwalla", 165, Rarity.COMMON, mage.cards.f.Frostwalla.class)); cards.add(new SetCardInfo("Future Sight", 53, Rarity.RARE, mage.cards.f.FutureSight.class));