Package mage.abilities.common

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


        // Each creature has "When this creature dies, choose target opponent. That player puts this card from its owner's graveyard onto the battlefield under his or her control at the beginning of the next end step."
        DelayedTriggeredAbility delayedAbility = new AtEndOfTurnDelayedTriggeredAbility(new ReturnSourceToBattlefieldEffect());
        Effect effect = new CreateDelayedTriggeredAbilityEffect(delayedAbility, true);
        effect.setText("choose target opponent. That player puts this card from its owner's graveyard onto the battlefield under his or her control at the beginning of the next end step");
        Ability gainAbility = new DiesTriggeredAbility(effect);
        gainAbility.addTarget(new TargetOpponent());
       
        effect = new GainAbilityAllEffect(gainAbility, Duration.WhileOnBattlefield, new FilterCreaturePermanent("Each creature"));
        effect.setText("Each creature has \"When this creature dies, choose target opponent. That player puts this card from its owner's graveyard onto the battlefield under his or her control at the beginning of the next end step.\"");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
   
View Full Code Here


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

        // When Iname, Life Aspect dies, you may exile it. If you do, return any number of target Spirit cards from your graveyard to your hand.
        Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new ExileSourceFromGraveCost(), "Exile to return Spirit cards?"), false);
        ability.addTarget(new TargetCardInYourGraveyard(0, Integer.MAX_VALUE, filter));
        this.addAbility(ability);
    }

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

        // 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}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{G}")));
View Full Code Here

        this.subtype.add("Shaman");
        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new DiesTriggeredAbility(new BoostTargetEffect(-2, -2, Duration.EndOfTurn), false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        // 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}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{B}")));
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Jugan, the Rising Star dies, you may distribute five +1/+1 counters among any number of target creatures.
        Ability ability = new DiesTriggeredAbility(new JuganTheRisingStarMultiEffect(), true);
        ability.addTarget(new TargetCreaturePermanentAmount(5));
        this.addAbility(ability);
    }

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

        this.subtype.add("Spirit");
        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);
        Ability ability = new DiesTriggeredAbility(new DiscardTargetEffect(new ZuberasDiedDynamicValue()));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        this.addWatcher(new ZuberasDiedWatcher());
    }

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

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

        // When Golgari Thug dies, put target creature card from your graveyard on top of your library.
        Ability ability = new DiesTriggeredAbility(new PutOnLibraryTargetEffect(true));
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);
        // Dredge 4
        this.addAbility(new DredgeAbility(4));
    }
View Full Code Here

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

        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(2, 0, Duration.EndOfTurn), false));
        Ability ability = new DiesTriggeredAbility(new MortisDogsEffect());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        this.expansionSetCode = "SOM";
        this.subtype.add("Myr");
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(2), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

    public PerilousMyr (final PerilousMyr card) {
        super(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.