Package mage.abilities.common.delayed

Examples of mage.abilities.common.delayed.AtTheBeginOfNextUpkeepDelayedTriggeredAbility


        this.color.setBlue(true);

        // An opponent chooses one
        this.getSpellAbility().getModes().setModeChooser(TargetController.OPPONENT);
        // You draw three cards at the beginning of the next turn's upkeep;
        this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(new DrawCardSourceControllerEffect(3)), false));
        // or you search your library for a card, put that card into your hand, then shuffle your library.
        Mode mode = new Mode();
        Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true);
        //effect.setText("you search your library for a card, put that card into your hand, then shuffle your library");
        mode.getEffects().add(effect);
View Full Code Here


        // Counter target spell. Its controller may draw up to two cards at the beginning of the next turn's upkeep.
        this.getSpellAbility().addEffect(new ArcaneDenialEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
        // You draw a card at the beginning of the next turn's upkeep.
        this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(new DrawCardSourceControllerEffect(1)),false));
    }
View Full Code Here

        }
        if (controller != null) {
            Effect effect = new DrawCardTargetEffect(new StaticValue(2), false, true);
            effect.setTargetPointer(new FixedTarget(controller.getId()));
            effect.setText("Its controller may draw up to two cards");
            DelayedTriggeredAbility ability = new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(effect);
            ability.setSourceId(source.getSourceId());
            ability.setControllerId(controller.getId());
            game.addDelayedTriggeredAbility(ability);
        }
        return countered;
    }
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Effect effect = new CreateTokenEffect(new HazezonTamarSandWarrior(), new PermanentsOnBattlefieldCount(new FilterControlledLandPermanent()));
            effect.setText("put X 1/1 Sand Warrior creature tokens that are red, green, and white onto the battlefield, where X is the number of lands you control at that time");
            DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(effect);
            delayedAbility.setSourceId(source.getSourceId());
            delayedAbility.setControllerId(source.getControllerId());
            game.addDelayedTriggeredAbility(delayedAbility);
            return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.delayed.AtTheBeginOfNextUpkeepDelayedTriggeredAbility

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.