Package mage.abilities.decorator

Examples of mage.abilities.decorator.ConditionalActivatedAbility.addCost()


                new ReturnSourceFromGraveyardToBattlefieldEffect(),
                new ManaCostsImpl("{3}{B}{B}"),
                new IsStepCondition(PhaseStep.UPKEEP),
                null
        );
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        this.addAbility(ability);
    }

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


        // {2}, {tap}: Draw a card if you have seven or more cards in hand.
        Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new GenericManaCost(2),
                new CardsInHandCondition(CardsInHandCondition.CountType.MORE_THAN, 6),
                "Draw a card if you have seven or more cards in hand.");
        ability.addCost(new TapSourceCost());       
        this.addAbility(ability);
    }

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

                new ReturnSourceFromGraveyardToBattlefieldEffect(true),
                new ManaCostsImpl("{4}"),
                new IsStepCondition(PhaseStep.UPKEEP),
                null
        );       
        ability.addCost(new MetalcraftCost());      
        this.addAbility(ability);
    }

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