Implemented Fountain of Ichor

This commit is contained in:
Evan Kranzler 2019-06-01 09:55:48 -04:00
parent 2f599f5d72
commit b2606c6176
2 changed files with 63 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));