Examples of AlternativeCostSourceAbility


Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.color.setBlack(true);
        this.power = new MageInt(6);
        this.toughness = new MageInt(4);

        // You may sacrifice three artifacts rather than pay Salvage Titan's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new SacrificeTargetCost(new TargetControlledPermanent(3, 3, new FilterControlledArtifactPermanent(), true))));

        // Exile three artifact cards from your graveyard: Return Salvage Titan from your graveyard to your hand.
        this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ExileFromGraveCost(new TargetCardInYourGraveyard(3, new FilterArtifactCard()))));
    }
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.color.setGreen(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(5);

        // You may pay {W}{U}{B}{R}{G} rather than pay Bringer of the Green Dawn's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{W}{U}{B}{R}{G}")));
        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // At the beginning of your upkeep,s you may put a 3/3 green Beast creature token onto the battlefield.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new BeastToken()), TargetController.YOU, true);
        this.addAbility(ability);
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.color.setBlue(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(5);

        // You may pay {W}{U}{B}{R}{G} rather than pay Bringer of the Blue Dawn's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{W}{U}{B}{R}{G}")));
        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // At the beginning of your upkeep, you may draw two cards.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), TargetController.YOU, true);
        this.addAbility(ability);
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.expansionSetCode = "ARB";
        this.color.setRed(true);
        this.color.setGreen(true);

        // You may pay {1} and return a basic land you control to its owner's hand rather than pay Firewild Borderpost's mana cost.
        Ability ability = new AlternativeCostSourceAbility(new GenericManaCost(1));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        this.addAbility(ability);

        // Veinfire Firewild enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.expansionSetCode = "DD2";

        this.color.setBlue(true);

        // You may return two Islands you control to their owner's hand rather than pay Gush's mana cost.
        AlternativeCostSourceAbility ability;  
        ability = new AlternativeCostSourceAbility(new ReturnToHandTargetCost(new TargetControlledPermanent(2, 2, filter, true)));
        this.addAbility(ability);
        // Draw two cards.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
    }
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.color.setGreen(true);
        this.power = new MageInt(0);
        this.toughness = new MageInt(0);

        // You may exile two green cards from your hand rather than pay Allosaurus Rider's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new ExileFromHandCost(new TargetCardInHand(2, filter))));

        // Allosaurus Rider's power and toughness are each equal to 1 plus the number of lands you control.
        DynamicValue onePlusControlledLands = new IntPlusDynamicValue(1, new PermanentsOnBattlefieldCount(new FilterControlledLandPermanent("lands you control")));
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(onePlusControlledLands, Duration.EndOfGame)));
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.expansionSetCode = "ARB";
        this.color.setBlue(true);
        this.color.setBlack(true);

        // You may pay {1} and return a basic land you control to its owner's hand rather than pay Mistvein Borderpost's mana cost.
        Ability ability = new AlternativeCostSourceAbility(new GenericManaCost(1));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        this.addAbility(ability);

         // Mistvein Borderpost enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.expansionSetCode = "ARB";
        this.color.setGreen(true);
        this.color.setWhite(true);

        // You may pay {1} and return a basic land you control to its owner's hand rather than pay Wildfield Borderpost's mana cost.
        Ability ability = new AlternativeCostSourceAbility(new GenericManaCost(1));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        this.addAbility(ability);

        // Wildfield Borderpost enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        this.expansionSetCode = "ARB";
        this.color.setWhite(true);
        this.color.setBlue(true);

        // You may pay {1} and return a basic land you control to its owner's hand rather than pay Fieldmist Borderpost's mana cost.
        Ability ability = new AlternativeCostSourceAbility(new GenericManaCost(1));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        this.addAbility(ability);

        // Fieldmist Borderpost enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
View Full Code Here

Examples of mage.abilities.costs.AlternativeCostSourceAbility

        // You may pay 1 life and exile a blue card from your hand rather than pay Force of Will's mana cost.
        FilterOwnedCard filter = new FilterOwnedCard("blue card from your hand");
        filter.add(new ColorPredicate(ObjectColor.BLUE));
        filter.add(Predicates.not(new CardIdPredicate(this.getId()))); // the exile cost can never be paid with the card itself

        AlternativeCostSourceAbility ability = new AlternativeCostSourceAbility(new PayLifeCost(1));
        ability.addCost(new ExileFromHandCost(new TargetCardInHand(filter)));
        this.addAbility(ability);         
              
        // Counter target spell.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
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.