[C21] Implemented Trudge Garden

This commit is contained in:
Evan Kranzler 2021-04-10 10:19:59 -04:00
parent cb4dd64037
commit 167d2579ac
3 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,36 @@
package mage.cards.t;
import mage.abilities.common.GainLifeControllerTriggeredAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DoIfCostPaid;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.game.permanent.token.FungusBeastToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TrudgeGarden extends CardImpl {
public TrudgeGarden(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}");
// Whenever you gain life, you may pay {2}. If you do, create a 4/4 green Fungus Beast creature token with trample.
this.addAbility(new GainLifeControllerTriggeredAbility(new DoIfCostPaid(
new CreateTokenEffect(new FungusBeastToken()), new GenericManaCost(2)
), false));
}
private TrudgeGarden(final TrudgeGarden card) {
super(card);
}
@Override
public TrudgeGarden copy() {
return new TrudgeGarden(this);
}
}

View file

@ -223,6 +223,7 @@ public final class Commander2021Edition extends ExpansionSet {
cards.add(new SetCardInfo("Tranquil Thicket", 408, Rarity.COMMON, mage.cards.t.TranquilThicket.class));
cards.add(new SetCardInfo("Traumatic Visions", 132, Rarity.COMMON, mage.cards.t.TraumaticVisions.class));
cards.add(new SetCardInfo("Treasure Cruise", 133, Rarity.COMMON, mage.cards.t.TreasureCruise.class));
cards.add(new SetCardInfo("Trudge Garden", 69, Rarity.RARE, mage.cards.t.TrudgeGarden.class));
cards.add(new SetCardInfo("Trygon Predator", 231, Rarity.UNCOMMON, mage.cards.t.TrygonPredator.class));
cards.add(new SetCardInfo("Unstable Obelisk", 272, Rarity.UNCOMMON, mage.cards.u.UnstableObelisk.class));
cards.add(new SetCardInfo("Utter End", 232, Rarity.RARE, mage.cards.u.UtterEnd.class));

View file

@ -0,0 +1,31 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.TrampleAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class FungusBeastToken extends TokenImpl {
public FungusBeastToken() {
super("Fungus Beast", "4/4 green Fungus Beast creature token with trample");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add(SubType.FUNGUS);
subtype.add(SubType.BEAST);
power = new MageInt(4);
toughness = new MageInt(4);
addAbility(TrampleAbility.getInstance());
}
private FungusBeastToken(final FungusBeastToken token) {
super(token);
}
public FungusBeastToken copy() {
return new FungusBeastToken(this);
}
}