[ZNR] Implemented Nahiri's Binding

This commit is contained in:
Evan Kranzler 2020-09-08 11:27:40 -04:00
parent 204418a8fd
commit 21454f9b58
4 changed files with 68 additions and 2 deletions

View file

@ -12,8 +12,12 @@ import mage.game.permanent.Permanent;
public class CantBlockAttackActivateAttachedEffect extends RestrictionEffect {
public CantBlockAttackActivateAttachedEffect() {
this("creature");
}
public CantBlockAttackActivateAttachedEffect(String enchantedName) {
super(Duration.WhileOnBattlefield);
staticText = "Enchanted creature can't attack or block, and its activated abilities can't be activated";
staticText = "Enchanted " + enchantedName + " can't attack or block, and its activated abilities can't be activated";
}
public CantBlockAttackActivateAttachedEffect(final CantBlockAttackActivateAttachedEffect effect) {

View file

@ -441,10 +441,24 @@ public final class StaticFilters {
static {
FILTER_PERMANENT_CREATURE_OR_PLANESWALKER_A.add(
Predicates.or(CardType.CREATURE.getPredicate(), CardType.PLANESWALKER.getPredicate()));
Predicates.or(
CardType.CREATURE.getPredicate(),
CardType.PLANESWALKER.getPredicate()
));
FILTER_PERMANENT_CREATURE_OR_PLANESWALKER_A.setLockedFilter(true);
}
public static final FilterPermanent FILTER_PERMANENT_CREATURE_OR_PLANESWALKER = new FilterPermanent("creature or planeswalker");
static {
FILTER_PERMANENT_CREATURE_OR_PLANESWALKER.add(
Predicates.or(
CardType.CREATURE.getPredicate(),
CardType.PLANESWALKER.getPredicate()
));
FILTER_PERMANENT_CREATURE_OR_PLANESWALKER.setLockedFilter(true);
}
public static final FilterCreaturePermanent FILTER_PERMANENT_A_CREATURE = new FilterCreaturePermanent("a creature");
static {