Package mage.abilities.effects.common.continious

Examples of mage.abilities.effects.common.continious.ExchangeControlTargetEffect


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

        // Inspired - Whenever Daring Thief becomes untapped, you may exchange control of target nonland permanent you control and target permanent an opponent controls that shares a card type with it.
        Ability ability = new InspiredAbility(new ExchangeControlTargetEffect(Duration.EndOfGame,
                "you may exchange control of target nonland permanent you control and target permanent an opponent controls that shares a card type with it", false, true), true);
        ability.addTarget(new TargetControlledPermanentSharingOpponentPermanentCardType());
        ability.addTarget(new DaringThiefSecondTarget());
        this.addAbility(ability);
    }
View Full Code Here


        this.expansionSetCode = "M13";

        this.color.setBlue(true);

        // Exchange control of two target creatures.
        this.getSpellAbility().addEffect(new ExchangeControlTargetEffect(Duration.EndOfGame, rule));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(2));
    }
View Full Code Here

    public AvariceTotem(UUID ownerId) {
        super(ownerId, 104, "Avarice Totem", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "5DN";

        // {5}: Exchange control of Avarice Totem and target nonland permanent.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExchangeControlTargetEffect(Duration.EndOfGame, rule, false), new ManaCostsImpl("{5}"));
        ability.addTarget(new TargetNonlandPermanent());
        this.addAbility(ability);
    }
View Full Code Here

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            if (targetPointer.getFirst(game, source) != null) {
                targetPermanent = game.getPermanent(targetPointer.getFirst(game, source));
                if (targetPermanent != null) {
                    ContinuousEffect effect = new ExchangeControlTargetEffect(Duration.EndOfGame, "", true);                   
                    effect.setTargetPointer(targetPointer);
                    game.addEffect(effect, source);
                } else {
                    sourceObject.sacrifice(source.getSourceId(), game);
                }
            }
View Full Code Here

        this.expansionSetCode = "RTR";

        this.color.setBlue(true);

        // At the beginning of your upkeep, you may exchange control of Conjured Currency and target permanent you neither own nor control.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new ExchangeControlTargetEffect(Duration.EndOfGame, rule, true), TargetController.YOU, true);
        ability.addTarget(new TargetPermanent(filter));
        this.addAbility(ability);
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {tap}: Exchange control of two target nonlegendary creatures. You can't activate this ability during combat.
        Ability ability = new ActivateIfConditionActivatedAbility(
                Zone.BATTLEFIELD,
                new ExchangeControlTargetEffect(Duration.EndOfGame, rule),
                new TapSourceCost(),
                new InvertCondition(new IsPhaseCondition(TurnPhase.COMBAT)));
        ability.addTarget(new TargetCreaturePermanent(2,2, filter, false));
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.continious.ExchangeControlTargetEffect

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.