diff --git a/Mage.Sets/src/mage/cards/t/TendrilOfTheMycotyrant.java b/Mage.Sets/src/mage/cards/t/TendrilOfTheMycotyrant.java new file mode 100644 index 00000000000..b3428380c46 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TendrilOfTheMycotyrant.java @@ -0,0 +1,65 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.Predicates; +import mage.game.permanent.token.custom.CreatureToken; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class TendrilOfTheMycotyrant extends CardImpl { + + private static final FilterControlledPermanent filter = new FilterControlledPermanent("noncreature land you control"); + + static { + filter.add(Predicates.not(CardType.CREATURE.getPredicate())); + filter.add(CardType.LAND.getPredicate()); + } + + public TendrilOfTheMycotyrant(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); + + this.subtype.add(SubType.FUNGUS); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // {5}{G}{G}: Put seven +1/+1 counters on target noncreature land you control. It becomes a 0/0 Fungus creature with haste. It's still a land. + Ability ability = new SimpleActivatedAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance(7)), + new ManaCostsImpl<>("{5}{G}{G}") + ); + ability.addEffect(new BecomesCreatureTargetEffect( + new CreatureToken(0, 0, "", SubType.FUNGUS) + .withAbility(HasteAbility.getInstance()), + false, true, Duration.Custom + ).setText("It becomes a 0/0 Fungus creature with haste. It's still a land.")); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + } + + private TendrilOfTheMycotyrant(final TendrilOfTheMycotyrant card) { + super(card); + } + + @Override + public TendrilOfTheMycotyrant copy() { + return new TendrilOfTheMycotyrant(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index 28f4fa68de0..0e7c8e7b174 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -167,6 +167,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Temple of Civilization", 26, Rarity.MYTHIC, mage.cards.t.TempleOfCivilization.class)); cards.add(new SetCardInfo("Temple of Power", 158, Rarity.MYTHIC, mage.cards.t.TempleOfPower.class)); cards.add(new SetCardInfo("Temple of the Dead", 88, Rarity.MYTHIC, mage.cards.t.TempleOfTheDead.class)); + cards.add(new SetCardInfo("Tendril of the Mycotyrant", 215, Rarity.UNCOMMON, mage.cards.t.TendrilOfTheMycotyrant.class)); cards.add(new SetCardInfo("Terror Tide", 127, Rarity.RARE, mage.cards.t.TerrorTide.class)); cards.add(new SetCardInfo("The Belligerent", 225, Rarity.RARE, mage.cards.t.TheBelligerent.class)); cards.add(new SetCardInfo("The Core", 256, Rarity.RARE, mage.cards.t.TheCore.class));