Package mage.abilities.common

Examples of mage.abilities.common.SpellCastAllTriggeredAbility.addTarget()


        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player casts a blue spell, you may pay {1}. If you do, target player puts the top two cards of his or her library into his or her graveyard.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new PutLibraryIntoGraveTargetEffect(2), new ManaCostsImpl("{1}")), filter, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
    }

    public DrownerInitiate(final DrownerInitiate card) {
View Full Code Here


        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player casts a green spell, you may pay {1}. If you do, target creature gets +1/+1 until end of turn.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new BoostTargetEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}")), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

    public NurturerInitiate(final NurturerInitiate card) {
        super(card);
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player casts a black spell, you may pay {1}. If you do, target player loses 1 life.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new LoseLifeTargetEffect(1), new ManaCostsImpl("{1}")), filter, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
    }

    public SmolderInitiate(final SmolderInitiate card) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.