Implemented Discordant Piper

This commit is contained in:
Evan Kranzler 2020-01-09 08:29:05 -05:00
parent ef959ed6d6
commit 9ea116dd8b
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,39 @@
package mage.cards.d;
import mage.MageInt;
import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.GoatToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class DiscordantPiper extends CardImpl {
public DiscordantPiper(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
this.subtype.add(SubType.ZOMBIE);
this.subtype.add(SubType.SATYR);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// When Discordant Piper dies, create a 0/1 white Goat creature token.
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new GoatToken())));
}
private DiscordantPiper(final DiscordantPiper card) {
super(card);
}
@Override
public DiscordantPiper copy() {
return new DiscordantPiper(this);
}
}

View file

@ -53,6 +53,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
cards.add(new SetCardInfo("Deathbellow War Cry", 294, Rarity.RARE, mage.cards.d.DeathbellowWarCry.class));
cards.add(new SetCardInfo("Demon of Loathing", 292, Rarity.RARE, mage.cards.d.DemonOfLoathing.class));
cards.add(new SetCardInfo("Devourer of Memory", 213, Rarity.UNCOMMON, mage.cards.d.DevourerOfMemory.class));
cards.add(new SetCardInfo("Discordant Piper", 88, Rarity.COMMON, mage.cards.d.DiscordantPiper.class));
cards.add(new SetCardInfo("Drag to the Underworld", 89, Rarity.UNCOMMON, mage.cards.d.DragToTheUnderworld.class));
cards.add(new SetCardInfo("Dreamshaper Shaman", 130, Rarity.UNCOMMON, mage.cards.d.DreamshaperShaman.class));
cards.add(new SetCardInfo("Dryad of the Ilysian Grove", 169, Rarity.RARE, mage.cards.d.DryadOfTheIlysianGrove.class));