mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[C21] Implemented Trudge Garden
This commit is contained in:
parent
cb4dd64037
commit
167d2579ac
3 changed files with 68 additions and 0 deletions
36
Mage.Sets/src/mage/cards/t/TrudgeGarden.java
Normal file
36
Mage.Sets/src/mage/cards/t/TrudgeGarden.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue