Package mage.target.common

Examples of mage.target.common.TargetSpellOrPermanent


        ability1.addTarget(new TargetControlledPermanent());
        this.addAbility(ability1);
        // {1}: Target spell or permanent becomes white until end of turn.
        Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SetCardColorTargetEffect(
                ObjectColor.WHITE, Duration.EndOfTurn),new ManaCostsImpl("{1}"));
        ability2.addTarget(new TargetSpellOrPermanent());
        this.addAbility(ability2);

    }
View Full Code Here


        // Flash
        this.addAbility(FlashAbility.getInstance());
        // When Venser, Shaper Savant enters the battlefield, return target spell or permanent to its owner's hand.
        Ability ability = new EntersBattlefieldTriggeredAbility(new VenserShaperSavantEffect(), false);
        Target target = new TargetSpellOrPermanent();
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

        // Illusion
        // Target spell or permanent becomes the color of your choice until end of turn.
        getLeftHalfCard().getColor().setBlue(true);
        getLeftHalfCard().getSpellAbility().addEffect(new SetCardColorTargetEffect(Duration.EndOfTurn));
        Target target = new TargetSpellOrPermanent();
        getLeftHalfCard().getSpellAbility().addTarget(target);
        getLeftHalfCard().getSpellAbility().addChoice(new ChoiceColor());

        // Reality
        // Destroy target artifact.
View Full Code Here

        ability.addTarget(target);
        this.addAbility(ability);
        // {1}: Target spell or permanent becomes white until end of turn.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new SetCardColorTargetEffect(ObjectColor.WHITE, Duration.EndOfTurn, "Target spell or permanent becomes white until end of turn"), new ManaCostsImpl("{1}"));
        target = new TargetSpellOrPermanent();
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetSpellOrPermanent

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.