mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
implement [MH3] Witch Enchanter // Witch-Blessed Meadow
This commit is contained in:
parent
93465ce2b8
commit
1bbb58f71f
2 changed files with 73 additions and 0 deletions
72
Mage.Sets/src/mage/cards/w/WitchEnchanter.java
Normal file
72
Mage.Sets/src/mage/cards/w/WitchEnchanter.java
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AsEntersBattlefieldAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.costs.common.PayLifeCost;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.TapSourceUnlessPaysEffect;
|
||||
import mage.abilities.mana.WhiteManaAbility;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.ModalDoubleFacedCard;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterArtifactOrEnchantmentPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class WitchEnchanter extends ModalDoubleFacedCard {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterArtifactOrEnchantmentPermanent("artifact or enchantment an opponent controls");
|
||||
|
||||
static {
|
||||
filter.add(TargetController.OPPONENT.getControllerPredicate());
|
||||
}
|
||||
|
||||
public WitchEnchanter(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo,
|
||||
new CardType[]{CardType.CREATURE}, new SubType[]{SubType.HUMAN, SubType.WARLOCK}, "{3}{W}",
|
||||
"Witch-Blessed Meadow", new CardType[]{CardType.LAND}, new SubType[]{}, ""
|
||||
);
|
||||
|
||||
// 1.
|
||||
// Witch Enchanter
|
||||
// Creature — Human Warlock
|
||||
this.getLeftHalfCard().setPT(new MageInt(2), new MageInt(2));
|
||||
|
||||
// When Witch Enchanter enters the battlefield, destroy target artifact or enchantment an opponent controls.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.getLeftHalfCard().addAbility(ability);
|
||||
|
||||
// 2.
|
||||
// Witch-Blessed Meadow
|
||||
// Land
|
||||
|
||||
// As Witch-Blessed Meadow enters the battlefield, you may pay 3 life. If you don't, it enters the battlefield tapped.
|
||||
this.getRightHalfCard().addAbility(new AsEntersBattlefieldAbility(
|
||||
new TapSourceUnlessPaysEffect(new PayLifeCost(3)),
|
||||
"you may pay 3 life. If you don't, it enters the battlefield tapped"
|
||||
));
|
||||
|
||||
// {T}: Add {W}.
|
||||
this.getRightHalfCard().addAbility(new WhiteManaAbility());
|
||||
}
|
||||
|
||||
private WitchEnchanter(final WitchEnchanter card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WitchEnchanter copy() {
|
||||
return new WitchEnchanter(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -151,6 +151,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Windswept Heath", 235, Rarity.RARE, mage.cards.w.WindsweptHeath.class));
|
||||
cards.add(new SetCardInfo("Winter Moon", 213, Rarity.RARE, mage.cards.w.WinterMoon.class));
|
||||
cards.add(new SetCardInfo("Wirewood Symbiote", 288, Rarity.UNCOMMON, mage.cards.w.WirewoodSymbiote.class));
|
||||
cards.add(new SetCardInfo("Witch Enchanter", 239, Rarity.UNCOMMON, mage.cards.w.WitchEnchanter.class));
|
||||
cards.add(new SetCardInfo("Wooded Foothills", 236, Rarity.RARE, mage.cards.w.WoodedFoothills.class));
|
||||
cards.add(new SetCardInfo("Worn Powerstone", 298, Rarity.UNCOMMON, mage.cards.w.WornPowerstone.class));
|
||||
cards.add(new SetCardInfo("Writhing Chrysalis", 208, Rarity.COMMON, mage.cards.w.WrithingChrysalis.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue