Package mage.filter

Examples of mage.filter.FilterSpell


                return new InterveneTargetSpell(this);
        }

        @Override
        public Filter getFilter() {
            return new FilterSpell();
        }
View Full Code Here


        this.color.setWhite(true);
        this.color.setBlue(true);
        this.color.setBlack(true);

        // Counter target spell. Its controller loses 3 life and you gain 3 life.
        this.getSpellAbility().addTarget(new TargetSpell(new FilterSpell()));
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(3));
        Effect effect = new GainLifeEffect(3);
        effect.setText("and you gain 3 life");
        this.getSpellAbility().addEffect(effect);
View Full Code Here

        this.color.setBlue(true);

        // Whenever an opponent casts a spell, that player draws seven cards.
        this.addAbility(new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(7),
                new FilterSpell(), false, SetTargetPointer.PLAYER));
    }
View Full Code Here

    private class CustomTargetSpell extends TargetObject {

        protected FilterSpell filter;

        public CustomTargetSpell() {
            this(1, 1, new FilterSpell());
        }
View Full Code Here

        this.supertype.add("World");

        this.color.setBlack(true);

        // Whenever a player casts a spell, counter it unless that player pays {3}.
        this.addAbility(new SpellCastAllTriggeredAbility(new CounterUnlessPaysEffect(new GenericManaCost(3)), new FilterSpell("a spell"), false, true));
    }
View Full Code Here

        this.color.setBlack(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(4);

        // Whenever an opponent casts a spell, Kaervek the Merciless deals damage to target creature or player equal to that spell's converted mana cost.
        Ability ability = new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new KaervekTheMercilessEffect(), new FilterSpell(), false, SetTargetPointer.SPELL);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);

    }
View Full Code Here

        this.expansionSetCode = "ODY";

        this.color.setBlue(true);

        // Whenever a player casts a spell, that player may pay {2}. If the player does, he or she draws a card.
        this.addAbility(new SpellCastAllTriggeredAbility(new UnifyingTheoryEffect() , new FilterSpell("a spell"), false, true));
    }
View Full Code Here

        // As Tablet of the Guilds enters the battlefield, choose two colors.
        this.addAbility(new AsEntersBattlefieldAbility(new TabletOfTheGuildsEntersBattlefieldEffect()));

        // Whenever you cast a spell, if it's at least one of the chosen colors, you gain 1 life for each of the chosen colors it is.
       this.addAbility(new SpellCastControllerTriggeredAbility(new TabletOfTheGuildsGainLifeEffect(), new FilterSpell("a spell"), false, true ));
    }
View Full Code Here

        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R)));
        // Suspend 2-{R}{R}
        this.addAbility(new SuspendAbility(2, new ManaCostsImpl("{R}{R}"), this, true));
        // Whenever an opponent casts a spell, if Pardic Dragon is suspended, that player may put a time counter on Pardic Dragon.
        this.addAbility(new ConditionalTriggeredAbility(
                new SpellCastOpponentTriggeredAbility(Zone.EXILED, new PardicDragonEffect(), new FilterSpell(), false, SetTargetPointer.PLAYER),
                SuspendedCondition.getInstance(),
                "Whenever an opponent casts a spell, if {this} is suspended, that player may put a time counter on {this}."
                ));

    }
View Full Code Here

        this.expansionSetCode = "PCY";

        this.color.setBlue(true);

        // Whenever an opponent casts a spell, you may draw a card unless that player pays {1}.
        this.addAbility(new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new RhysticStudyDrawEffect(), new FilterSpell(), true, SetTargetPointer.PLAYER));
    }
View Full Code Here

TOP

Related Classes of mage.filter.FilterSpell

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.