mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[ANA] - implemented Cruel Cut
This commit is contained in:
parent
e9fa44f354
commit
be55ba19eb
1 changed files with 42 additions and 0 deletions
42
Mage.Sets/src/mage/cards/c/CruelCut.java
Normal file
42
Mage.Sets/src/mage/cards/c/CruelCut.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
|
||||
public final class CruelCut extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with power 2 or less");
|
||||
|
||||
static {
|
||||
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3));
|
||||
}
|
||||
|
||||
public CruelCut(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Destroy target creature with power 2 or less.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||
}
|
||||
|
||||
public CruelCut(final CruelCut card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CruelCut copy() {
|
||||
return new CruelCut(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue