mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
[ZNR] Implemented Nahiri's Binding
This commit is contained in:
parent
204418a8fd
commit
21454f9b58
4 changed files with 68 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue