Package mage.abilities.common

Examples of mage.abilities.common.EntersBattlefieldTriggeredAbility.addEffect()


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

        // When Flame-Kin Zealot enters the battlefield, creatures you control get +1/+1 and gain haste until end of turn.
        Ability ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(1, 1, Duration.EndOfTurn));
        ability.addEffect(new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent()));
        this.addAbility(ability);
    }

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


        this.addAbility(FlashAbility.getInstance());
        // Reach
        this.addAbility(ReachAbility.getInstance());
        // When Cloudthresher enters the battlefield, it deals 2 damage to each creature with flying and each player.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageAllEffect(2, filter));
        ability.addEffect(new DamagePlayersEffect(2));
        this.addAbility(ability);
        // Evoke {2}{G}{G}
        this.addAbility(new EvokeAbility(this, "{2}{G}{G}"));
    }
View Full Code Here

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

        //When Obzedat, Ghost Council enters the battlefield, target opponent loses 2 life and you gain 2 life.
        Ability ability = new EntersBattlefieldTriggeredAbility(new LoseLifeTargetEffect(2));
        ability.addEffect(new GainLifeEffect(2));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        //At the beginning of your end step you may exile Obzedat. If you do, return it to the battlefield under it's owner's control at the beginning of your next upkeep. It gains haste.
        Ability ability2 = new BeginningOfYourEndStepTriggeredAbility(new ObzedatGhostCouncilExileSourceEffect(), true);
        ability2.addEffect(new CreateDelayedTriggeredAbilityEffect(new BeginningOfYourUpkeepdelayTriggeredAbility()));
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Bloodhunter Bat enters the battlefield, target player loses 2 life and you gain 2 life.
        Ability ability = new EntersBattlefieldTriggeredAbility(new LoseLifeTargetEffect(2));
        ability.addEffect(new GainLifeEffect(2));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

        this.subtype.add("Horror");
        this.color.setBlack(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);
        Ability ability = new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(2), false);
        ability.addEffect(new LoseLifeSourceControllerEffect(2));
        this.addAbility(ability);
    }

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

        // Haste
        this.addAbility(HasteAbility.getInstance());
       
        // When Thundermaw Hellkite enters the battlefield, it deals 1 damage to each creature with flying your opponents control. Tap those creatures.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageAllEffect(1, filter));
        ability.addEffect(new TapAllEffect(filter));
        this.addAbility(ability);
    }

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

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

        // When Noggle Ransacker enters the battlefield, each player draws two cards, then discards a card at random.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DrawCardAllEffect(2));
        ability.addEffect(new DiscardEachPlayerEffect(1, true));
        this.addAbility(ability);
    }

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

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

        // When Inner-Flame Acolyte enters the battlefield, target creature gets +2/+0 and gains haste until end of turn.
        Ability ability = new EntersBattlefieldTriggeredAbility(new BoostTargetEffect(2,0, Duration.EndOfTurn));
        ability.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);

        // Evoke {R}
        this.addAbility(new EvokeAbility(this, "{R}"));
View Full Code Here

        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new EntersBattlefieldTriggeredAbility(new UntapTargetEffect(), false);
        ability.addTarget(new TargetPermanent(filter));
        ability.addEffect(new GainControlTargetEffect(Duration.EndOfTurn));
        ability.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(ability);
    }

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

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new EntersBattlefieldTriggeredAbility(new UntapTargetEffect(), false);
        ability.addTarget(new TargetPermanent(filter));
        ability.addEffect(new GainControlTargetEffect(Duration.EndOfTurn));
        ability.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(ability);
    }

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