Examples of ExileTargetForSourceEffect


Examples of mage.abilities.effects.common.ExileTargetForSourceEffect

        this.subtype.add("Cleric");
        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        Ability ability = new EntersBattlefieldTriggeredAbility(new ExileTargetForSourceEffect("Leonin Relic-Warder exile"), true);
        Target target = new TargetPermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);

        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetForSourceEffect

        super(ownerId, 20, "Oblivion Ring", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
        this.expansionSetCode = "ALA";
        this.color.setWhite(true);

        // When Oblivion Ring enters the battlefield, exile another target nonland permanent.
        Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetForSourceEffect( "Oblivion Ring exile"), false);
        Target target = new TargetPermanent(anotherNonlandPermanent);
        ability1.addTarget(target);
        this.addAbility(ability1);

        // When Oblivion Ring leaves the battlefield, return the exiled card to the battlefield under its owner's control.
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetForSourceEffect

        ability.addCost(new TapSourceCost());
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
        // {W}, {T}: Exile target creature that has a fate counter on it, then return it to the battlefield under its owner's control.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetForSourceEffect("Triad of Fates"), new ManaCostsImpl("{W}"));
        ability.addCost(new TapSourceCost());
        target = new TargetCreaturePermanent(filterCounter);
        ability.addTarget(target);
        ability.addEffect(new ReturnToBattlefieldUnderOwnerControlTargetEffect());
        this.addAbility(ability);
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.