forked from External/mage
49 lines
1.5 KiB
Java
49 lines
1.5 KiB
Java
package mage.cards.d;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SimpleEvasionAbility;
|
|
import mage.abilities.effects.common.combat.CantBeBlockedByCreaturesSourceEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.ComparisonType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.filter.common.FilterCreaturePermanent;
|
|
import mage.filter.predicate.mageobject.PowerPredicate;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class DuskmantleOperative extends CardImpl {
|
|
|
|
private static final FilterCreaturePermanent filter
|
|
= new FilterCreaturePermanent("creatures with power 4 or greater");
|
|
|
|
static {
|
|
filter.add(new PowerPredicate(ComparisonType.MORE_THAN, 3));
|
|
}
|
|
|
|
public DuskmantleOperative(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
|
|
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.ROGUE);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Duskmantle Operative can't be blocked by creatures with power 4 or greater.
|
|
this.addAbility(new SimpleEvasionAbility(new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield)));
|
|
}
|
|
|
|
private DuskmantleOperative(final DuskmantleOperative card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public DuskmantleOperative copy() {
|
|
return new DuskmantleOperative(this);
|
|
}
|
|
}
|