Package mage.abilities.keyword

Examples of mage.abilities.keyword.SuspendAbility


                if (!hasSuspend) {
                    // add suspend ability
                    // TODO: Find a better solution for giving suspend to a card.
                    // If the exiled card leaves exile by another way, the abilites won't be removed from the card
                    Abilities oldAbilities = card.getAbilities().copy();
                    SuspendAbility suspendAbility = new SuspendAbility(4, null, card);
                    card.addAbility(suspendAbility);

                    for (Ability ability :card.getAbilities()) {
                        if (!oldAbilities.contains(ability)) {
                            ability.setControllerId(source.getControllerId());
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);
    }
View Full Code Here

        // Target player discards three cards.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetPlayer());

        // Suspend 4—{B} (Rather than cast this card from your hand, you may pay {B} and exile it with four time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.)
        this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{B}"), this));
    }
View Full Code Here

        this.addAbility(FlyingAbility.getInstance());
        // protection from black
        this.addAbility(new ProtectionAbility(filter));

        // Suspend 3-{1}{W}
        this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{1}{W}"), this));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Suspend 4-{1}{G}
        this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{1}{G}"), this));
    }
View Full Code Here

        // Roiling Horror's power and toughness are each equal to your life total minus the life total of an opponent with the most life.
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new RoilingHorrorDynamicValue(), Duration.EndOfGame)));

        // Suspend X-{X}{B}{B}{B}. X can't be 0.
        this.addAbility(new SuspendAbility(Integer.MAX_VALUE, new ManaCostsImpl("{B}{B}{B}"), this, true));
       
        // Whenever a time counter is removed from Roiling Horror while it's exiled, target player loses 1 life and you gain 1 life.
        this.addAbility(new RoilingHorrorTriggeredAbility());

    }
View Full Code Here

        this.expansionSetCode = "TSP";

        this.color.isBlack();

        // Suspend 3-{2}{B}{B}
        this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{2}{B}{B}"), this));
        // Each player exiles all creature cards from his or her graveyard, then sacrifices all creatures
        // he or she controls, then puts all cards he or she exiled this way onto the battlefield.
        this.getSpellAbility().addEffect(new LivingEndEffect());
       
    }
View Full Code Here

        // Detritivore's power and toughness are each equal to the number of nonbasic land cards in your opponents' graveyards.
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new NonBasicLandsInOpponentsGraveyards(), Duration.EndOfGame)));

        // Suspend X-{X}{3}{R}. X can't be 0.
        this.addAbility(new SuspendAbility(Integer.MAX_VALUE, new ManaCostsImpl("{3}{R}"), this, true));

        // Whenever a time counter is removed from Detritivore while it's exiled, destroy target nonbasic land.
        this.addAbility(new DetritivoreTriggeredAbility());

    }
View Full Code Here

        // Rift Bolt deals 3 damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());

        // Suspend 1-{R}
        this.addAbility(new SuspendAbility(1, new ManaCostsImpl("{R}"), this));


    }
View Full Code Here

        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);

        // Suspend 3-{1}{U}
        this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{1}{U}"),this));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.SuspendAbility

Copyright © 2018 www.massapicom. 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.