mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implemented Wolf's Quarry
This commit is contained in:
parent
a22165f388
commit
9604aa9bef
3 changed files with 64 additions and 0 deletions
31
Mage.Sets/src/mage/cards/w/WolfsQuarry.java
Normal file
31
Mage.Sets/src/mage/cards/w/WolfsQuarry.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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 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("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("Worthy Knight", 36, Rarity.RARE, mage.cards.w.WorthyKnight.class));
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue