Package mage.filter.common

Examples of mage.filter.common.FilterAttackingCreature


        this.expansionSetCode = "KTK";

        this.color.setWhite(true);

        // Destroy target attacking creature.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(new FilterAttackingCreature()));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
    }
View Full Code Here


        super(ownerId, 15, "Marrow Shards", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{WP}");
        this.expansionSetCode = "NPH";

        this.color.setWhite(true);

        this.getSpellAbility().addEffect(new DamageAllEffect(1, new FilterAttackingCreature()));
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(2);

        // Whenever Fangren Firstborn attacks, put a +1/+1 counter on each attacking creature.
        this.addAbility(new AttacksTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterAttackingCreature()), false));
    }
View Full Code Here

        this.color.setWhite(true);

        // Prevent all combat damage that would be dealt this turn by attacking
        // creatures.
        this.getSpellAbility().addEffect(
                new PreventAllDamageByAllEffect(new FilterAttackingCreature(), Duration.EndOfTurn, true));
    }
View Full Code Here

        this.expansionSetCode = "LEA";

        this.color.setRed(true);

        // Attacking creatures you control get +1/+0.
        BoostControlledEffect boostEffect = new BoostControlledEffect(1, 0, Duration.WhileOnBattlefield, new FilterAttackingCreature(), false);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, boostEffect));
    }
View Full Code Here

            playerList.setCurrent(game.getActivePlayerId());
            Player player = game.getPlayer(game.getActivePlayerId());
            do {
                ArrayList<Permanent> permanentsToTop = new ArrayList<>();
                ArrayList<Permanent> permanentsToBottom = new ArrayList<>();
                for (Permanent permanent:game.getState().getBattlefield().getActivePermanents(new FilterAttackingCreature(), player.getId(), source.getSourceId(), game)) {
                    if (permanent.getOwnerId().equals(player.getId())) {
                        if (player.chooseUse(outcome, "Put " + permanent.getLogName() + " to the top? (else it goes to bottom)", game)) {
                            permanentsToTop.add(permanent);
                            game.informPlayers(permanent.getLogName() + " goes to the top of " + player.getName() + "'s library");
                        } else {
View Full Code Here

        this.expansionSetCode = "ISD";

        this.color.setWhite(true);

        // Destroy target attacking creature.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(new FilterAttackingCreature()));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
    }
View Full Code Here

        this.power = new MageInt(2);
        this.toughness = new MageInt(3);

        // Attacking creatures you control get +1/+0.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
                new ConditionalContinousEffect(new BoostControlledEffect(1, 0, Duration.WhileOnBattlefield, new FilterAttackingCreature()),
                new TransformedCondition(true), "Attacking creatures you control get +1/+0")));


        // At the beginning of each upkeep, if no spells were cast last turn, transform Instigator Gang.
        this.addAbility(new TransformAbility());
View Full Code Here

        this.expansionSetCode = "M13";

        this.color.setWhite(true);

        // Rain of Blades deals 1 damage to each attacking creature.
        this.getSpellAbility().addEffect(new DamageAllEffect(1, new FilterAttackingCreature()));
    }
View Full Code Here

        this.supertype.add("Legendary");

        this.color.setGreen(true);

        // Attacking creatures you control have deathtouch.
        GainAbilityControlledEffect gainEffect = new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.WhileOnBattlefield, new FilterAttackingCreature("Attacking creatures"), false);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, gainEffect));
       
        // {1}{G}, {T}: Choose one - Put a +1/+1 counter on target creature;
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new AddCountersTargetEffect(CounterType.P1P1.createInstance()),
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterAttackingCreature

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.