Package mage.abilities.common

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


                    new InvertCondition(new CastFromHandCondition()), true,
                    "{this} enters the battlefield with three +1/+1 counters on it if you didn't cast it from your hand",""));

        // When Epochrasite dies, exile it with three time counters on it and it gains suspend.
        Ability ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new AddCountersSourceEffect(CounterType.TIME.createInstance(3), new StaticValue(0), false, true));
        ability.addEffect(new GainAbilitySourceEffect(new SuspendAbility(3, null, this), Duration.OneUse, true));
        this.addAbility(ability);
    }

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


                    "{this} enters the battlefield with three +1/+1 counters on it if you didn't cast it from your hand",""));

        // When Epochrasite dies, exile it with three time counters on it and it gains suspend.
        Ability ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new AddCountersSourceEffect(CounterType.TIME.createInstance(3), new StaticValue(0), false, true));
        ability.addEffect(new GainAbilitySourceEffect(new SuspendAbility(3, null, this), Duration.OneUse, true));
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(8);

        this.addAbility(TrampleAbility.getInstance());
        // When Moldgraf Monstrosity dies, exile it, then return two creature cards at random from your graveyard to the battlefield.
        DiesTriggeredAbility ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new MoldgrafMonstrosityEffect());
        this.addAbility(ability);
    }

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

        this.power = new MageInt(6);
        this.toughness = new MageInt(6);
        this.addAbility(DeathtouchAbility.getInstance());
        this.addAbility(LifelinkAbility.getInstance());
        Ability ability = new DiesTriggeredAbility(new CreateTokenEffect(new Wurm1Token()), false);
        ability.addEffect(new CreateTokenEffect(new Wurm2Token()));
        this.addAbility(ability);
    }

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

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Mistmoon Griffin dies, exile Mistmoon Griffin, then return the top creature card of your graveyard to the battlefield.
        Ability ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new MistmoonGriffinEffect());
        this.addAbility(ability);

    }

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

        this.addAbility(FlyingAbility.getInstance());
        // When Yosei, the Morning Star dies, target player skips his or her next untap step. Tap up to five target permanents that player controls.
        Ability ability = new DiesTriggeredAbility(new SkipNextPlayerUntapStepEffect());
        ability.addTarget(new TargetPlayer());
        ability.addTarget(new YoseiTheMorningStarTarget());
        ability.addEffect(new YoseiTheMorningStarTapEffect());
        this.addAbility(ability);
    }

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

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(3)));
        // Cards in graveyards can't be the targets of spells or abilities.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new UnderworldCerberusEffect()));
        // When Underworld Cerberus dies, exile it and each player returns all creature cards from his or her graveyard to his or her hand.
        Ability ability = new DiesTriggeredAbility(new ExileSourceEffect());
        ability.addEffect(new ReturnToHandFromGraveyardAllEffect(new FilterCreatureCard("creature cards")));
        this.addAbility(ability);
    }

    public UnderworldCerberus(final UnderworldCerberus 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.