Package mage.abilities.costs

Examples of mage.abilities.costs.AlternativeCostSourceAbility


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

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

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


        this.expansionSetCode = "CMD";

        this.color.setGreen(true);

        // If you control a Forest, rather than pay Invigorate's mana cost, you may have an opponent gain 3 life.
        this.addAbility(new AlternativeCostSourceAbility(new GainLifeOpponentCost(3), new PermanentsOnTheBattlefieldCondition(filter)));   
        // Target creature gets +4/+4 until end of turn.
        this.getSpellAbility().addEffect(new BoostTargetEffect(4,4,Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

        this.expansionSetCode = "PCY";

        this.color.setBlue(true);

        // You may discard an Island card and another card rather than pay Foil's mana cost.
        Ability ability = new AlternativeCostSourceAbility(new DiscardTargetCost(new TargetCardInHand(filter)));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand(new FilterCard("another card"))));
        this.addAbility(ability);

        // Counter target spell.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
View Full Code Here

        super(ownerId, 1, "Abolish", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{W}{W}");
        this.expansionSetCode = "PCY";
        this.color.setWhite(true);

        // You may discard a Plains card rather than pay Abolish's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new DiscardTargetCost(new TargetCardInHand(filterCost))));

        // Destroy target artifact or enchantment.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(new FilterArtifactOrEnchantmentPermanent()));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.costs.AlternativeCostSourceAbility

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.