forked from External/mage
[DSK] Implement Overlord of the Hauntwoods
This commit is contained in:
parent
a090349100
commit
dc4bc6ccb2
3 changed files with 73 additions and 0 deletions
45
Mage.Sets/src/mage/cards/o/OverlordOfTheHauntwoods.java
Normal file
45
Mage.Sets/src/mage/cards/o/OverlordOfTheHauntwoods.java
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldOrAttacksSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.ImpendingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.EverywhereToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OverlordOfTheHauntwoods extends CardImpl {
|
||||
|
||||
public OverlordOfTheHauntwoods(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{3}{G}{G}");
|
||||
|
||||
this.subtype.add(SubType.AVATAR);
|
||||
this.subtype.add(SubType.HORROR);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Impending 4--{1}{G}{G}
|
||||
this.addAbility(new ImpendingAbility("{1}{G}{G}"));
|
||||
|
||||
// Whenever Overlord of the Hauntwoods enters or attacks, create a tapped colorless land token named Everywhere that is every basic land type.
|
||||
this.addAbility(new EntersBattlefieldOrAttacksSourceTriggeredAbility(
|
||||
new CreateTokenEffect(new EverywhereToken(), 1, true)
|
||||
));
|
||||
}
|
||||
|
||||
private OverlordOfTheHauntwoods(final OverlordOfTheHauntwoods card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OverlordOfTheHauntwoods copy() {
|
||||
return new OverlordOfTheHauntwoods(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -56,6 +56,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Murky Sewer", 263, Rarity.COMMON, mage.cards.m.MurkySewer.class));
|
||||
cards.add(new SetCardInfo("Neglected Manor", 264, Rarity.COMMON, mage.cards.n.NeglectedManor.class));
|
||||
cards.add(new SetCardInfo("Overlord of the Floodpits", 68, Rarity.MYTHIC, mage.cards.o.OverlordOfTheFloodpits.class));
|
||||
cards.add(new SetCardInfo("Overlord of the Hauntwoods", 194, Rarity.MYTHIC, mage.cards.o.OverlordOfTheHauntwoods.class));
|
||||
cards.add(new SetCardInfo("Patched Plaything", 24, Rarity.UNCOMMON, mage.cards.p.PatchedPlaything.class));
|
||||
cards.add(new SetCardInfo("Patchwork Beastie", 195, Rarity.UNCOMMON, mage.cards.p.PatchworkBeastie.class));
|
||||
cards.add(new SetCardInfo("Peculiar Lighthouse", 265, Rarity.COMMON, mage.cards.p.PeculiarLighthouse.class));
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EverywhereToken extends TokenImpl {
|
||||
|
||||
public EverywhereToken() {
|
||||
super("Everywhere", "colorless land token named Everywhere that is every basic land type");
|
||||
cardType.add(CardType.LAND);
|
||||
subtype.add(SubType.PLAINS, SubType.ISLAND, SubType.SWAMP, SubType.MOUNTAIN, SubType.FOREST);
|
||||
|
||||
this.addAbility(new AnyColorManaAbility());
|
||||
}
|
||||
|
||||
private EverywhereToken(final EverywhereToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public EverywhereToken copy() {
|
||||
return new EverywhereToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue