Package mage.filter.predicate.permanent

Examples of mage.filter.predicate.permanent.BlockingPredicate


    }

    public FilterCreatureForAttack(String name) {
        super(name);
        this.add(Predicates.not(new AttackingPredicate()));
        this.add(Predicates.not(new BlockingPredicate()));
        this.add(Predicates.not(new TappedPredicate()));
        this.add(Predicates.not(new AbilityPredicate(DefenderAbility.class)));
        this.add(new CanTapPredicate());
    }
View Full Code Here


    public FilterAttackingOrBlockingCreature(String name) {
        super(name);
        this.add(Predicates.or(
                new AttackingPredicate(),
                new BlockingPredicate()));
    }
View Full Code Here

        this("Blocking creature");
    }

    public FilterBlockingCreature(String name) {
        super(name);
        this.add(new BlockingPredicate());
    }
View Full Code Here

                String command = action.getAction();
                command = command.substring(command.indexOf("block:") + 6);
                String[] groups = command.split(";");
                FilterCreatureForCombatBlock filterBlocker = new FilterCreatureForCombatBlock();
                filterBlocker.add(new NamePredicate(groups[0]));
                filterBlocker.add(Predicates.not(new BlockingPredicate()));
                Permanent blocker = findPermanent(filterBlocker, playerId, game);
                if (blocker != null) {
                    FilterAttackingCreature filterAttacker = new FilterAttackingCreature();
                    filterAttacker.add(new NamePredicate(groups[1]));
                    Permanent attacker = findPermanent(filterAttacker, opponentId, game);
View Full Code Here

TOP

Related Classes of mage.filter.predicate.permanent.BlockingPredicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.