forked from External/mage
[WOE] Implement Witch's Mark (#11006)
This commit is contained in:
parent
4413aa5ce2
commit
c79c9d3d7d
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/w/WitchsMark.java
Normal file
42
Mage.Sets/src/mage/cards/w/WitchsMark.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.effects.common.CreateRoleAttachedTargetEffect;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.RoleType;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class WitchsMark extends CardImpl {
|
||||
|
||||
public WitchsMark(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}");
|
||||
|
||||
// You may discard a card. If you do, draw two cards.
|
||||
this.getSpellAbility().addEffect(new DoIfCostPaid(
|
||||
new DrawCardSourceControllerEffect(2),
|
||||
new DiscardCardCost()
|
||||
));
|
||||
|
||||
// Create a Wicked Role token attached to up to one target creature you control.
|
||||
this.getSpellAbility().addEffect(new CreateRoleAttachedTargetEffect(RoleType.WICKED).concatBy("<br>"));
|
||||
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent(0, 1));
|
||||
}
|
||||
|
||||
private WitchsMark(final WitchsMark card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WitchsMark copy() {
|
||||
return new WitchsMark(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -265,6 +265,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Werefox Bodyguard", 39, Rarity.RARE, mage.cards.w.WerefoxBodyguard.class));
|
||||
cards.add(new SetCardInfo("Wicked Visitor", 118, Rarity.COMMON, mage.cards.w.WickedVisitor.class));
|
||||
cards.add(new SetCardInfo("Will, Scion of Peace", 218, Rarity.MYTHIC, mage.cards.w.WillScionOfPeace.class));
|
||||
cards.add(new SetCardInfo("Witch's Mark", 158, Rarity.COMMON, mage.cards.w.WitchsMark.class));
|
||||
cards.add(new SetCardInfo("Witchstalker Frenzy", 159, Rarity.UNCOMMON, mage.cards.w.WitchstalkerFrenzy.class));
|
||||
cards.add(new SetCardInfo("Woodland Acolyte", 241, Rarity.UNCOMMON, mage.cards.w.WoodlandAcolyte.class));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue