From 93575835a0735151bbc89cc338355b18b4ee88d3 Mon Sep 17 00:00:00 2001 From: jmharmon <37360760+jmharmon@users.noreply.github.com> Date: Tue, 9 Apr 2019 18:11:10 -0700 Subject: [PATCH] Move Quirion Druid to correct location --- Mage.Sets/src/mage/cards/q/QuirionDruid.java | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/q/QuirionDruid.java diff --git a/Mage.Sets/src/mage/cards/q/QuirionDruid.java b/Mage.Sets/src/mage/cards/q/QuirionDruid.java new file mode 100644 index 0000000000..f96dcb089b --- /dev/null +++ b/Mage.Sets/src/mage/cards/q/QuirionDruid.java @@ -0,0 +1,71 @@ +package mage.cards.q; + +import mage.MageInt; +import mage.ObjectColor; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.Zone; +import mage.game.permanent.token.TokenImpl; +import mage.target.common.TargetLandPermanent; + +import java.util.UUID; + +/** + * + * @author jmharmon + */ + +public final class QuirionDruid extends CardImpl { + + public QuirionDruid(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.DRUID); + + this.power = new MageInt(1); + this.toughness = new MageInt(2); + + // {G}, {T}: Target land becomes a 2/2 green creature that’s still a land. (This effect lasts indefinitely.) + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(new QuirionDruidToken(), false, true, Duration.Custom), new ManaCostsImpl("{G}")); + ability.addCost(new TapSourceCost()); + ability.addTarget(new TargetLandPermanent()); + this.addAbility(ability); + } + + public QuirionDruid(final QuirionDruid card) { + super(card); + } + + @Override + public QuirionDruid copy() { + return new QuirionDruid(this); + } +} + +class QuirionDruidToken extends TokenImpl { + + public QuirionDruidToken() { + super("", "2/2 green creature"); + this.color.addColor(ObjectColor.GREEN); + this.cardType.add(CardType.CREATURE); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + } + + public QuirionDruidToken(final QuirionDruidToken token) { + super(token); + } + + public QuirionDruidToken copy() { + return new QuirionDruidToken(this); + } +}