forked from External/mage
[CMR] Implemented Fin-Clade Fugitives
This commit is contained in:
parent
9501392524
commit
bea8549058
18 changed files with 130 additions and 222 deletions
38
Mage/src/main/java/mage/abilities/keyword/DauntAbility.java
Normal file
38
Mage/src/main/java/mage/abilities/keyword/DauntAbility.java
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.common.SimpleEvasionAbility;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedByCreaturesSourceEffect;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class DauntAbility extends SimpleEvasionAbility {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3));
|
||||
}
|
||||
|
||||
public DauntAbility() {
|
||||
super(new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield));
|
||||
}
|
||||
|
||||
private DauntAbility(final DauntAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DauntAbility copy() {
|
||||
return new DauntAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "{this} can't be blocked by creatures with power 2 or less.";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue