Package mage.abilities.common

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


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

        // At the beginning of each upkeep, Magmatic Force deals 3 damage to target creature or player.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), TargetController.ANY, false);
        ability.addTarget(new TargetCreatureOrPlayer());       
        this.addAbility(ability);
    }

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


        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);
    }

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

        this.color.setBlack(true);

        // At the beginning of your upkeep, destroy target creature with a -1/-1 counter on it.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), TargetController.YOU, false);
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
       
    }

    public CrumblingAshes(final CrumblingAshes card) {
View Full Code Here

        // At the beginning of your upkeep, you may have target opponent discard a card at random.
        Effect effect = new DiscardTargetEffect(1, true);
        effect.setText("you may have target opponent discard a card at random");
        Ability ability = new BeginningOfUpkeepTriggeredAbility(effect, TargetController.YOU, true);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);

        // Whenever an opponent discards a card, you may put a 1/1 green Elf Warrior creature token onto the battlefield.
        Effect effect2 = new CreateTokenEffect(new ElfToken());
        effect2.setText("you may put a 1/1 green Elf Warrior creature token onto the battlefield");
View Full Code Here

        this.color.setWhite(true);

        // <i>({WB} can be paid with either {W} or {B}.)</i>
        // At the beginning of your upkeep, put target creature card from a graveyard onto the battlefield under your control.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToBattlefieldTargetEffect(), TargetController.YOU, false);
        ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from a graveyard")));
        this.addAbility(ability);
       
    }

    public DebtorsKnell(final DebtorsKnell card) {
View Full Code Here

        this.power = new MageInt(3);
        this.toughness = new MageInt(3);
        this.addAbility(FearAbility.getInstance());
        // At the beginning of your upkeep, you may return target Goblin card from your graveyard to your hand.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new ReturnToHandTargetEffect(), TargetController.YOU, true);
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);
    }

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

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

        // At the beginning of your upkeep, you may have Cryptoplasm become a copy of another target creature. If you do, Cryptoplasm gains this ability.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new CryptoplasmTransformEffect(), TargetController.YOU, true);
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);
    }

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

        game.copyPermanent(creature, permanent, source, new ApplyToPermanent() {
            @Override
            public Boolean apply(Game game, Permanent permanent) {
                Ability upkeepAbility = new BeginningOfUpkeepTriggeredAbility(new CryptoplasmTransformEffect(), TargetController.YOU, true);
                upkeepAbility.addTarget(new TargetCreaturePermanent());
                permanent.addAbility(upkeepAbility, source.getSourceId(), game);
                return true;
            }
        });
View Full Code Here

        this.subtype.add("Shrine");
        this.color.setRed(true);

        // At the beginning of your upkeep, Honden of Infinite Rage deals damage to target creature or player equal to the number of Shrines you control.                
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)), TargetController.YOU, false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

       
        // At the beginning of your upkeep, you may have target creature you control get +X/+X until end of turn,
        // where X is the number of creatures you control. If you do, sacrifice that creature at the beginning of the next end step.
        PermanentsOnBattlefieldCount amount = new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent());
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new BoostTargetEffect(amount, amount, Duration.EndOfTurn), TargetController.YOU, true);
        ability.addTarget(new TargetControlledCreaturePermanent());
        ability.addEffect(new JunkyoBellSacrificeEffect());
        this.addAbility(ability);
    }

    public JunkyoBell(final JunkyoBell 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.