[MOM] Implement Etched Host Doombringer

This commit is contained in:
theelk801 2023-04-06 20:37:24 -04:00
parent c1ac88102e
commit ae0773de4e
5 changed files with 145 additions and 0 deletions

View file

@ -46,6 +46,7 @@ public enum CounterType {
CURRENCY("currency"),
DEATH("death"),
DEATHTOUCH("deathtouch"),
DEFENSE("defense"),
DELAY("delay"),
DEPLETION("depletion"),
DESCENT("descent"),

View file

@ -763,6 +763,18 @@ public final class StaticFilters {
FILTER_PERMANENT_PLANESWALKERS.setLockedFilter(true);
}
public static final FilterBattlePermanent FILTER_PERMANENT_BATTLE = new FilterBattlePermanent();
static {
FILTER_PERMANENT_BATTLE.setLockedFilter(true);
}
public static final FilterBattlePermanent FILTER_PERMANENT_BATTLES = new FilterBattlePermanent("battles");
static {
FILTER_PERMANENT_BATTLES.setLockedFilter(true);
}
public static final FilterNonlandPermanent FILTER_PERMANENT_NON_LAND = new FilterNonlandPermanent();
static {

View file

@ -0,0 +1,35 @@
package mage.filter.common;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
/**
* @author TheElk801
*/
public class FilterBattlePermanent extends FilterPermanent {
public FilterBattlePermanent() {
this("battle");
}
public FilterBattlePermanent(String name) {
super(name);
this.add(CardType.BATTLE.getPredicate());
}
public FilterBattlePermanent(SubType subtype, String name) {
super(name);
this.add(CardType.BATTLE.getPredicate());
this.add(subtype.getPredicate());
}
public FilterBattlePermanent(final FilterBattlePermanent filter) {
super(filter);
}
@Override
public FilterBattlePermanent copy() {
return new FilterBattlePermanent(this);
}
}