Package mage.abilities.common

Examples of mage.abilities.common.SpellCastAllTriggeredAbility


        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


        this.addAbility(new UnblockableAbility());
        // Suspend 9-{2}{U}
        this.addAbility(new SuspendAbility(9, new ManaCostsImpl("{2}{U}"), this));
        // Whenever an opponent casts a spell, if Deep-Sea Kraken is suspended, remove a time counter from it.
        this.addAbility(new ConditionalTriggeredAbility(
                new SpellCastAllTriggeredAbility(new RemoveCounterSourceEffect(CounterType.TIME.createInstance()), filter, false), SuspendedCondition.getInstance(),
                "Whenever an opponent casts a spell, if Deep-Sea Kraken is suspended, remove a time counter from it.", false));
    }
View Full Code Here

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

        // Whenever a player casts a noncreature spell, counter that spell. That player puts X 1/1 white and blue Bird creature tokens with flying onto the battlefield, where X is the spell's converted mana cost.
        this.addAbility(new SpellCastAllTriggeredAbility(new DovescapeEffect(), filter, false, true));
    }
View Full Code Here

       
        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever you cast a white spell, Loyal Gyrfalcon loses defender until end of turn.
        this.addAbility(new SpellCastAllTriggeredAbility(new LoseAbilitySourceEffect(DefenderAbility.getInstance(), Duration.EndOfTurn), filter, false, rule));
       
    }
View Full Code Here

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ShrewdHatchlingEffect(), new ManaCostsImpl("{U/R}"));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
       
        // Whenever you cast a blue spell, remove a -1/-1 counter from Shrewd Hatchling.
        this.addAbility(new SpellCastAllTriggeredAbility(new RemoveCounterSourceEffect(CounterType.M1M1.createInstance()), filter, false, rule));
       
        // Whenever you cast a red spell, remove a -1/-1 counter from Shrewd Hatchling.
        this.addAbility(new SpellCastAllTriggeredAbility(new RemoveCounterSourceEffect(CounterType.M1M1.createInstance()), filter2, false, rule2));
       
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever a player casts a nonblack spell, that player loses 1 life.
        this.addAbility(new SpellCastAllTriggeredAbility(new SootImpEffect(), filter, false, true));
       
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.SpellCastAllTriggeredAbility

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.