[AFR] Implemented Power Word Kill

This commit is contained in:
Evan Kranzler 2021-05-07 07:51:48 -04:00
parent 90a0d3e1f3
commit c47afc8c4f
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package mage.cards.p;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PowerWordKill extends CardImpl {
private static final FilterPermanent filter
= new FilterCreaturePermanent("non-Angel, non-Demon, non-Devil, non-Dragon creature");
static {
filter.add(Predicates.not(SubType.ANGEL.getPredicate()));
filter.add(Predicates.not(SubType.DEMON.getPredicate()));
filter.add(Predicates.not(SubType.DEVIL.getPredicate()));
filter.add(Predicates.not(SubType.DRAGON.getPredicate()));
}
public PowerWordKill(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
// Destroy target non-Angel, non-Demon, non-Devil, non-Dragon creature.
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(filter));
}
private PowerWordKill(final PowerWordKill card) {
super(card);
}
@Override
public PowerWordKill copy() {
return new PowerWordKill(this);
}
}

View file

@ -30,6 +30,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
cards.add(new SetCardInfo("Mountain", 277, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plains", 265, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Portable Hole", 33, Rarity.COMMON, mage.cards.p.PortableHole.class));
cards.add(new SetCardInfo("Power Word Kill", 114, Rarity.UNCOMMON, mage.cards.p.PowerWordKill.class));
cards.add(new SetCardInfo("Swamp", 273, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
}
}