Package mage.abilities.effects

Examples of mage.abilities.effects.OneShotEffect


        this.toughness = new MageInt(2);

        // When Masked Admirers enters the battlefield, draw a card.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1), false));
        // Whenever you cast a creature spell, you may pay {G}{G}. If you do, return Masked Admirers from your graveyard to your hand.
        OneShotEffect effect = new ReturnToHandSourceEffect();
        effect.setText("return {this} from your graveyard to your hand");
        this.addAbility(new SpellCastControllerTriggeredAbility(
                Zone.GRAVEYARD, new DoIfCostPaid(effect, new ManaCostsImpl("{G}{G}")), filter, false, false));
    }
View Full Code Here


        this.toughness = new MageInt(6);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Numot, the Devastator deals combat damage to a player, you may pay {2}{R}. If you do, destroy up to two target lands.
        OneShotEffect effect = new DestroyTargetEffect();
        effect.setText("destroy up to two target lands");
        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(
                new DoIfCostPaid(effect, new ManaCostsImpl("{2}{R}")), false);
        ability.addTarget(new TargetLandPermanent(0,2, new FilterLandPermanent("lands"), false));
        this.addAbility(ability);       
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.OneShotEffect

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.