forked from External/mage
52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.ObjectColor;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
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.common.FilterCreaturePermanent;
|
|
import mage.filter.predicate.Predicates;
|
|
import mage.filter.predicate.mageobject.ColorPredicate;
|
|
import mage.target.common.TargetCreaturePermanent;
|
|
|
|
/**
|
|
*
|
|
* @author fireshoes
|
|
*/
|
|
public final class SerpentAssassin extends CardImpl {
|
|
|
|
static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonblack creature");
|
|
|
|
static {
|
|
filter.add(Predicates.not(new ColorPredicate(ObjectColor.BLACK)));
|
|
}
|
|
|
|
public SerpentAssassin(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}{B}");
|
|
this.subtype.add(SubType.SNAKE);
|
|
this.subtype.add(SubType.ASSASSIN);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// When Serpent Assassin enters the battlefield, you may destroy target nonblack creature.
|
|
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true);
|
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
public SerpentAssassin(final SerpentAssassin card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public SerpentAssassin copy() {
|
|
return new SerpentAssassin(this);
|
|
}
|
|
}
|