Package mage.abilities.common

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


        // Cycling {5}{G}{W}{U}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{G}{W}{U}")));
        // When you cycle Resounding Silence, exile up to two target attacking creatures.
        Ability ability = new CycleTriggeredAbility(new ExileTargetEffect());
        TargetPermanent target = new TargetAttackingCreature(0, 2, new FilterAttackingCreature("up to two target attacking creatures"), false);
        ability.addTarget(target);
        this.addAbility(ability);
    }

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


        this.toughness = new MageInt(2);

        // When you cycle Jund Sojourners or it dies, you may have it deal 1 damage to target creature or player.
        Ability ability1 = new CycleTriggeredAbility(new DamageTargetEffect(1));
        Ability ability2 = new DiesTriggeredAbility(new DamageTargetEffect(1));
        ability1.addTarget(new TargetCreatureOrPlayer());
        ability2.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{R}
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.