Package mage.abilities.common

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


        // Cycling {1}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}")));
        // When you cycle Gempalm Incinerator, you may have it deal X damage to target creature, where X is the number of Goblins on the battlefield.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)),true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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


        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        // Cycling {1}{R}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}{R}")));
        // When you cycle Solar Blast, you may have it deal 1 damage to target creature or player.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(1), true);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

        this.getSpellAbility().addEffect(new GainAbilityAllEffect(FearAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("All creatures")));
        // Cycling {1}{B}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{B}")));
        // When you cycle Dirge of Dread, you may have target creature gain fear until end of turn.
        Ability ability = new CycleTriggeredAbility(new GainAbilityTargetEffect(FearAbility.getInstance(), Duration.EndOfTurn), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        // Cycling {5}{B}{R}{G}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{B}{R}{G}")));
        // When you cycle Resounding Thunder, it deals 6 damage to target creature or player.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(6));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(3);

        // When you cycle Esper Sojourners or it dies, you may tap or untap target permanent.
        Ability ability1 = new CycleTriggeredAbility(new MayTapOrUntapTargetEffect());
        Ability ability2 = new DiesTriggeredAbility(new MayTapOrUntapTargetEffect());
        ability1.addTarget(new TargetPermanent());
        ability2.addTarget(new TargetPermanent());
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{U}
View Full Code Here

        this.getSpellAbility().addTarget(new TargetPlayer());
        // Cycling {5}{U}{B}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{U}{B}{R}")));
        // When you cycle Resounding Scream, target player discards two cards at random.
        Ability ability = new CycleTriggeredAbility(new DiscardTargetEffect(2, true));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        // Cycling {5}{R}{G}{W}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{R}{G}{W}")));
        // When you cycle Resounding Roar, target creature gets +6/+6 until end of turn.
        Ability ability = new CycleTriggeredAbility(new BoostTargetEffect(6, 6, Duration.EndOfTurn));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        // Cycling {5}{W}{U}{B}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{W}{U}{B}")));
        // When you cycle Resounding Wave, return two target permanents to their owners' hands.
        Ability ability = new CycleTriggeredAbility(new ReturnToHandTargetEffect());
        TargetPermanent target = new TargetPermanent(2, new FilterPermanent("two target permanents"));
        ability.addTarget(target);
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(3);

        // When you cycle Naya Sojourners or it dies, you may put a +1/+1 counter on target creature.
        Ability ability1 = new CycleTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
        Ability ability2 = new DiesTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
        ability1.addTarget(new TargetCreaturePermanent());
        ability2.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{G}
View Full Code Here

        this.toughness = new MageInt(3);

        // When you cycle Grixis Sojourners or it dies, you may exile target card from a graveyard.
        Ability ability1 = new CycleTriggeredAbility(new ExileTargetEffect(), true);
        Ability ability2 = new DiesTriggeredAbility(new ExileTargetEffect(), true);
        ability1.addTarget(new TargetCardInASingleGraveyard(1, 1, new FilterCard()));
        ability2.addTarget(new TargetCardInASingleGraveyard(1, 1, new FilterCard()));
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{B}
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.