Package mage.abilities.common

Examples of mage.abilities.common.BeginningOfUpkeepTriggeredAbility.addTarget()


        this.power = new MageInt(1);
        this.toughness = new MageInt(4);

        // At the beginning of your upkeep, you may put a charge counter on target artifact.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new AddCountersTargetEffect(CounterType.CHARGE.createInstance()), TargetController.YOU, true);
        ability.addTarget(new TargetArtifactPermanent());
        this.addAbility(ability);
    }

    public VedalkenInfuser (final VedalkenInfuser card) {
        super(card);
View Full Code Here


        this.color.setBlack(true);

        // At the beginning of your upkeep, target opponent discards a card if you control the creature with the greatest power or tied for the greatest power.
        TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(new DiscardTargetEffect(1), TargetController.YOU, false);
        Target target =  new TargetOpponent();
        ability.addTarget(target);
        this.addAbility(new ConditionalTriggeredAbility(ability, ControlsBiggestOrTiedCreatureCondition.getInstance(), ruleText));
    }

    public TriumphOfCruelty(final TriumphOfCruelty card) {
        super(card);
View Full Code Here

        // At the beginning of your upkeep, detain target creature an opponent controls.
        // (Until your next turn, that creature can't attack or block and its activated abilities can't be activated.)
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new DetainTargetEffect(), TargetController.YOU, false);
        TargetCreaturePermanent target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }

    public MartialLaw(final MartialLaw card) {
        super(card);
View Full Code Here

        this.color.setRed(true);

        // At the beginning of your upkeep, Form of the Dragon deals 5 damage to target creature or player.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new DamageTargetEffect(5), TargetController.YOU, false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
       
        // At the beginning of each end step, your life total becomes 5.
        this.addAbility(new BeginningOfEndStepTriggeredAbility(new FormOfTheDragonEffect(), TargetController.ANY, false));
       
View Full Code Here

        this.power = new MageInt(7);
        this.toughness = new MageInt(7);

        // At the beginning of each upkeep, you may tap or untap target permanent.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new MayTapOrUntapTargetEffect(), TargetController.ANY, false);
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }

    public TidalForce(final TidalForce card) {
        super(card);
View Full Code Here

        this.toughness = new MageInt(4);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new GainControlTargetEffect(Duration.EndOfTurn), TargetController.YOU, true);
        ability.addEffect(new UntapTargetEffect());
        ability.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }

    public DominusOfFealty(final DominusOfFealty card) {
        super(card);
View Full Code Here

        // of his or her library, may put a creature card from among them onto the battlefield,
        // then puts the rest into his or her graveyard. You do the same with the top three
        // cards of your library. If two creatures are put onto the battlefield this way,
        // those creatures fight each other.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new GuildFeudEffect(), TargetController.YOU, true);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }

    public GuildFeud(final GuildFeud card) {
        super(card);
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new TapTargetEffect(), TargetController.YOU, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

    public HarrierGriffin(final HarrierGriffin card) {
        super(card);
View Full Code Here

        this.color.setWhite(true);

        // At the beginning of each upkeep, you may exile target creature card from your graveyard. If you do, put a token onto the battlefield that's a copy of that card except it's a Spirit in addition to its other types. Exile it at the beginning of the next end step.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new SeanceEffect(), TargetController.ANY, true);
        ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard()));
        this.addAbility(ability);
    }

    public Seance(final Seance card) {
        super(card);
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.