package mage.cards.s; import java.util.UUID; import mage.ObjectColor; import mage.abilities.effects.common.DestroyTargetEffect; import mage.abilities.effects.common.DrawCardSourceControllerEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.filter.common.FilterCreaturePermanent; import mage.filter.predicate.mageobject.ColorPredicate; import mage.target.common.TargetCreaturePermanent; /** * * @author Plopman */ public final class Slay extends CardImpl { private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("green creature"); static{ filter.add(new ColorPredicate(ObjectColor.GREEN)); } public Slay(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{B}"); // Destroy target green creature. It can't be regenerated. this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); this.getSpellAbility().addEffect(new DestroyTargetEffect(true)); // Draw a card. this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)); } public Slay(final Slay card) { super(card); } @Override public Slay copy() { return new Slay(this); } }