Implemented Sprouting Renewal

This commit is contained in:
Evan Kranzler 2018-09-17 20:20:34 -04:00
parent 235ef69b5f
commit 9e155309ef
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.cards.s;
import java.util.UUID;
import mage.abilities.Mode;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.ConvokeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.ElfKnightToken;
import mage.target.TargetPermanent;
/**
*
* @author TheElk801
*/
public final class SproutingRenewal extends CardImpl {
public SproutingRenewal(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{G}");
// Convoke
this.addAbility(new ConvokeAbility());
// Choose one
// Create a 2/2 green and white Elf Knight creature token with vigilance.
this.getSpellAbility().addEffect(new CreateTokenEffect(new ElfKnightToken()));
// Destroy target artifact or enchantment.
Mode mode = new Mode(new DestroyTargetEffect());
mode.addTarget(new TargetPermanent(
StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT
));
this.getSpellAbility().addMode(mode);
}
public SproutingRenewal(final SproutingRenewal card) {
super(card);
}
@Override
public SproutingRenewal copy() {
return new SproutingRenewal(this);
}
}

View file

@ -161,6 +161,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Sinister Sabotage", 54, Rarity.UNCOMMON, mage.cards.s.SinisterSabotage.class));
cards.add(new SetCardInfo("Skyknight Legionnaire", 198, Rarity.COMMON, mage.cards.s.SkyknightLegionnaire.class));
cards.add(new SetCardInfo("Sonic Assault", 199, Rarity.COMMON, mage.cards.s.SonicAssault.class));
cards.add(new SetCardInfo("Sprouting Renewal", 145, Rarity.UNCOMMON, mage.cards.s.SproutingRenewal.class));
cards.add(new SetCardInfo("Status // Statue", 230, Rarity.UNCOMMON, mage.cards.s.StatusStatue.class));
cards.add(new SetCardInfo("Steam Vents", 257, Rarity.RARE, mage.cards.s.SteamVents.class));
cards.add(new SetCardInfo("Sumala Woodshaper", 200, Rarity.COMMON, mage.cards.s.SumalaWoodshaper.class));