mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Added card "A Jedi's Fervor" and its abilities and effects
This commit is contained in:
parent
7dca71997a
commit
32ff6ada7b
3 changed files with 147 additions and 1 deletions
|
|
@ -442,6 +442,12 @@ public final class StaticFilters {
|
|||
FILTER_CONTROLLED_PERMANENT_LANDS.setLockedFilter(true);
|
||||
}
|
||||
|
||||
public static final FilterPermanent FILTER_CONTROLLED_PERMANENT_CREATURE_OR_PLANESWALKER = new FilterControlledCreatureOrPlaneswalkerPermanent("creature or planeswalker you control");
|
||||
|
||||
static {
|
||||
FILTER_CONTROLLED_PERMANENT_CREATURE_OR_PLANESWALKER.setLockedFilter(true);
|
||||
}
|
||||
|
||||
public static final FilterControlledPermanent FILTER_CONTROLLED_PERMANENT_PLANESWALKER = new FilterControlledPlaneswalkerPermanent("planeswalker you control");
|
||||
|
||||
static {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
package mage.filter.common;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class FilterControlledCreatureOrPlaneswalkerPermanent extends FilterControlledPermanent {
|
||||
|
||||
public FilterControlledCreatureOrPlaneswalkerPermanent() {
|
||||
this("creature or planeswalker you control");
|
||||
}
|
||||
|
||||
public FilterControlledCreatureOrPlaneswalkerPermanent(SubType subType) {
|
||||
this(subType, "a " + subType + " creature or a " + subType + " planeswalker");
|
||||
}
|
||||
|
||||
public FilterControlledCreatureOrPlaneswalkerPermanent(SubType subType, String name) {
|
||||
super(name);
|
||||
this.add(Predicates.or(
|
||||
CardType.CREATURE.getPredicate(),
|
||||
CardType.PLANESWALKER.getPredicate()
|
||||
));
|
||||
this.add(subType.getPredicate());
|
||||
}
|
||||
|
||||
public FilterControlledCreatureOrPlaneswalkerPermanent(String name) {
|
||||
super(name);
|
||||
this.add(Predicates.or(
|
||||
CardType.CREATURE.getPredicate(),
|
||||
CardType.PLANESWALKER.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public FilterControlledCreatureOrPlaneswalkerPermanent(final FilterControlledCreatureOrPlaneswalkerPermanent filter) {
|
||||
super(filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FilterControlledCreatureOrPlaneswalkerPermanent copy() {
|
||||
return new FilterControlledCreatureOrPlaneswalkerPermanent(this);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue