mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[40K] Implemented Deny the Witch
This commit is contained in:
parent
0a0d62113e
commit
fe45045510
2 changed files with 38 additions and 0 deletions
37
Mage.Sets/src/mage/cards/d/DenyTheWitch.java
Normal file
37
Mage.Sets/src/mage/cards/d/DenyTheWitch.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
||||
import mage.abilities.effects.common.CounterTargetEffect;
|
||||
import mage.abilities.effects.common.LoseLifeTargetControllerEffect;
|
||||
import mage.abilities.hint.common.CreaturesYouControlHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.TargetStackObject;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DenyTheWitch extends CardImpl {
|
||||
|
||||
public DenyTheWitch(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}{U}{B}");
|
||||
|
||||
// Counter target spell, activated ability, or triggered ability. Its controller loses life equal to the number of creatures you control.
|
||||
this.getSpellAbility().addEffect(new CounterTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetStackObject());
|
||||
this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(CreaturesYouControlCount.instance));
|
||||
this.getSpellAbility().addHint(CreaturesYouControlHint.instance);
|
||||
}
|
||||
|
||||
private DenyTheWitch(final DenyTheWitch card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DenyTheWitch copy() {
|
||||
return new DenyTheWitch(this);
|
||||
}
|
||||
}
|
|
@ -88,6 +88,7 @@ public final class Warhammer40000 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Defenders of Humanity", 11, Rarity.RARE, mage.cards.d.DefendersOfHumanity.class));
|
||||
cards.add(new SetCardInfo("Defile", 199, Rarity.UNCOMMON, mage.cards.d.Defile.class));
|
||||
cards.add(new SetCardInfo("Deny Reality", 223, Rarity.COMMON, mage.cards.d.DenyReality.class));
|
||||
cards.add(new SetCardInfo("Deny the Witch", 116, Rarity.UNCOMMON, mage.cards.d.DenyTheWitch.class));
|
||||
cards.add(new SetCardInfo("Deploy to the Front", 184, Rarity.RARE, mage.cards.d.DeployToTheFront.class));
|
||||
cards.add(new SetCardInfo("Desert of the Glorified", 275, Rarity.COMMON, mage.cards.d.DesertOfTheGlorified.class));
|
||||
cards.add(new SetCardInfo("Dismal Backwater", 276, Rarity.COMMON, mage.cards.d.DismalBackwater.class));
|
||||
|
|
Loading…
Reference in a new issue