diff --git a/Mage.Sets/src/mage/cards/w/WakerootElemental.java b/Mage.Sets/src/mage/cards/w/WakerootElemental.java new file mode 100644 index 0000000000..7ecf8172b3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WakerootElemental.java @@ -0,0 +1,77 @@ +package mage.cards.w; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.UntapTargetEffect; +import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect; +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.filter.FilterPermanent; +import mage.filter.common.FilterControlledLandPermanent; +import mage.game.permanent.token.TokenImpl; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WakerootElemental extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledLandPermanent(); + + public WakerootElemental(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}"); + + this.subtype.add(SubType.ELEMENTAL); + this.power = new MageInt(5); + this.toughness = new MageInt(5); + + // {G}{G}{G}{G}{G}: Untap target land you control. It becomes a 5/5 Elemental creature with haste. It's still a land. + Ability ability = new SimpleActivatedAbility( + new UntapTargetEffect(), new ManaCostsImpl("{G}{G}{G}{G}{G}") + ); + ability.addEffect(new BecomesCreatureTargetEffect( + new WakerootElementalToken(), false, true, Duration.Custom + ).setText("It becomes a 5/5 Elemental creature with haste. It's still a land.")); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + } + + private WakerootElemental(final WakerootElemental card) { + super(card); + } + + @Override + public WakerootElemental copy() { + return new WakerootElemental(this); + } +} + +class WakerootElementalToken extends TokenImpl { + + WakerootElementalToken() { + super("", "5/5 Elemental creature with haste"); + this.cardType.add(CardType.CREATURE); + this.subtype.add(SubType.ELEMENTAL); + + this.power = new MageInt(5); + this.toughness = new MageInt(5); + + this.addAbility(HasteAbility.getInstance()); + } + + private WakerootElementalToken(final WakerootElementalToken token) { + super(token); + } + + public WakerootElementalToken copy() { + return new WakerootElementalToken(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2020.java b/Mage.Sets/src/mage/sets/CoreSet2020.java index 9eef6774ed..622408f177 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2020.java +++ b/Mage.Sets/src/mage/sets/CoreSet2020.java @@ -60,6 +60,7 @@ public final class CoreSet2020 extends ExpansionSet { cards.add(new SetCardInfo("Thrashing Brontodon", 197, Rarity.UNCOMMON, mage.cards.t.ThrashingBrontodon.class)); cards.add(new SetCardInfo("Uncaged Fury", 163, Rarity.UNCOMMON, mage.cards.u.UncagedFury.class)); cards.add(new SetCardInfo("Unsummon", 78, Rarity.COMMON, mage.cards.u.Unsummon.class)); + cards.add(new SetCardInfo("Wakeroot Elemental", 202, Rarity.RARE, mage.cards.w.WakerootElemental.class)); cards.add(new SetCardInfo("Yarok's Fenlurker", 123, Rarity.UNCOMMON, mage.cards.y.YaroksFenlurker.class)); } }