Implemented Wolf's Quarry

This commit is contained in:
Evan Kranzler 2019-09-13 08:12:09 -04:00
parent a22165f388
commit 9604aa9bef
3 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,31 @@
package mage.cards.w;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.game.permanent.token.WolfsQuarryToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class WolfsQuarry extends CardImpl {
public WolfsQuarry(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{G}{G}");
// Create three 1/1 green Boar creature tokens with "When this creature dies, create a Food token."
this.getSpellAbility().addEffect(new CreateTokenEffect(new WolfsQuarryToken(), 3));
}
private WolfsQuarry(final WolfsQuarry card) {
super(card);
}
@Override
public WolfsQuarry copy() {
return new WolfsQuarry(this);
}
}

View file

@ -183,6 +183,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Witch's Oven", 237, Rarity.UNCOMMON, mage.cards.w.WitchsOven.class)); cards.add(new SetCardInfo("Witch's Oven", 237, Rarity.UNCOMMON, mage.cards.w.WitchsOven.class));
cards.add(new SetCardInfo("Witch's Vengeance", 111, Rarity.RARE, mage.cards.w.WitchsVengeance.class)); cards.add(new SetCardInfo("Witch's Vengeance", 111, Rarity.RARE, mage.cards.w.WitchsVengeance.class));
cards.add(new SetCardInfo("Witching Well", 74, Rarity.COMMON, mage.cards.w.WitchingWell.class)); cards.add(new SetCardInfo("Witching Well", 74, Rarity.COMMON, mage.cards.w.WitchingWell.class));
cards.add(new SetCardInfo("Wolf's Quarry", 164, Rarity.COMMON, mage.cards.w.WolfsQuarry.class));
cards.add(new SetCardInfo("Workshop Elders", 318, Rarity.RARE, mage.cards.w.WorkshopElders.class)); cards.add(new SetCardInfo("Workshop Elders", 318, Rarity.RARE, mage.cards.w.WorkshopElders.class));
cards.add(new SetCardInfo("Worthy Knight", 36, Rarity.RARE, mage.cards.w.WorthyKnight.class)); cards.add(new SetCardInfo("Worthy Knight", 36, Rarity.RARE, mage.cards.w.WorthyKnight.class));

View file

@ -0,0 +1,32 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class WolfsQuarryToken extends TokenImpl {
public WolfsQuarryToken() {
super("Boar", "1/1 green Boar creature token with \"When this creature dies, create a Food token.\"");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add(SubType.BOAR);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new FoodToken())));
}
private WolfsQuarryToken(final WolfsQuarryToken token) {
super(token);
}
public WolfsQuarryToken copy() {
return new WolfsQuarryToken(this);
}
}