Package mage.filter.predicate.permanent

Examples of mage.filter.predicate.permanent.AttackingPredicate


        this("");
    }

    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("");
    }

    public FilterCreatureForCombatBase(String name) {
        super(name);
        this.add(Predicates.not(new AttackingPredicate()));
        this.add(new PhasedInPredicate());
        this.add(new CanBlockPredicate());
    }
View Full Code Here

        this("attacking creature");
    }

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

                        }
                    }
                }
                FilterCreatureForCombat filter = new FilterCreatureForCombat();
                filter.add(new NamePredicate(groups[0]));
                filter.add(Predicates.not(new AttackingPredicate()));
                Permanent attacker = findPermanent(filter, playerId, game);
                if (attacker != null && attacker.canAttack(defenderId, game)) {
                    this.declareAttacker(attacker.getId(), defenderId, game, false);
                }
            }
View Full Code Here

        Permanent permanent = game.getPermanent(this.targetPointer.getFirst(game, source));
        if (permanent != null) {
           
            FilterCreaturePermanent filter = new FilterCreaturePermanent();
            filter.add(Predicates.not(new PermanentIdPredicate(this.targetPointer.getFirst(game, source))));
            filter.add(new AttackingPredicate());
            boolean isChangeling = false;
            for(Ability ability : permanent.getAbilities()){
                if(ability instanceof ChangelingAbility){
                    isChangeling = true;
                }
View Full Code Here

TOP

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

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.