mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
[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.";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +1,10 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.StaticAbility;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedByOneEffect;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class MenaceAbility extends StaticAbility { // Menace may not be a Singleton because the source ability is needed in the continuous effect
|
||||
|
|
@ -33,7 +26,7 @@ public class MenaceAbility extends StaticAbility { // Menace may not be a Single
|
|||
}
|
||||
|
||||
@Override
|
||||
public Ability copy() {
|
||||
public MenaceAbility copy() {
|
||||
return new MenaceAbility(this);
|
||||
}
|
||||
|
||||
|
|
@ -45,5 +38,4 @@ public class MenaceAbility extends StaticAbility { // Menace may not be a Single
|
|||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue