Examples of SkipNextUntapTargetEffect


Examples of mage.abilities.effects.common.SkipNextUntapTargetEffect

        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(4)), false));

        // +1: Tap target permanent. It doesn't untap during its controller's next untap step.
        LoyaltyAbility ability = new LoyaltyAbility(new TapTargetEffect(), 1);
        ability.addEffect(new SkipNextUntapTargetEffect());
        Target target = new TargetPermanent();
        ability.addTarget(target);
        this.addAbility(ability);

        // -2: Draw a card for each tapped creature target player controls.
View Full Code Here

Examples of mage.abilities.effects.common.SkipNextUntapTargetEffect

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            for (Permanent permanent :game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {
                ContinuousEffect effect = new SkipNextUntapTargetEffect();
                effect.setTargetPointer(new FixedTarget(permanent.getId()));
                game.addEffect(effect, source);
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.abilities.effects.common.SkipNextUntapTargetEffect

    @Override
    public boolean apply(Game game, Ability source) {
        for (Permanent creature: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {
            creature.tap(game);
            ContinuousEffect effect = new SkipNextUntapTargetEffect();
            effect.setTargetPointer(new FixedTarget(creature.getId()));
            game.addEffect(effect, source);               
        }
        return true;
    }
View Full Code Here

Examples of mage.abilities.effects.common.SkipNextUntapTargetEffect

class FrostTitanAbility2 extends TriggeredAbilityImpl {

    public FrostTitanAbility2() {
        super(Zone.BATTLEFIELD, new TapTargetEffect(), false);
        this.addEffect(new SkipNextUntapTargetEffect());
        this.addTarget(new TargetPermanent());
    }
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.