- Fixed Terror.

This commit is contained in:
jeffwadsworth 2012-07-02 14:46:31 -05:00
parent b05bcffd19
commit 20e01817d0

View file

@ -33,6 +33,7 @@ import mage.Constants.Rarity;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.filter.common.FilterCreaturePermanent;
import mage.target.Target;
import mage.target.common.TargetCreaturePermanent;
/**
@ -45,9 +46,9 @@ public class Terror extends CardImpl<Terror> {
static {
filter.getNotCardType().add(CardType.ARTIFACT);
filter.setNotCardType(true);
filter.getColor().setBlack(true);
filter.setNotColor(true);
filter.setUseColor(true);
}
public Terror(UUID ownerId) {
@ -57,7 +58,9 @@ public class Terror extends CardImpl<Terror> {
this.color.setBlack(true);
// Destroy target nonartifact, nonblack creature. It can't be regenerated.
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
Target target = new TargetCreaturePermanent(filter);
target.setTargetName("nonartifact, nonblack creature");
this.getSpellAbility().addTarget(target);
this.getSpellAbility().addEffect(new DestroyTargetEffect(true));
}