Examples of addEffect()


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

        Effect effect = new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("creatures you control gain first strike");
        Ability ability = new AttacksTriggeredAbility(effect, false);
        effect = new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("and deathtouch until end of turn");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

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

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

        // Whenever Gustcloak Sentinel becomes blocked, you may untap it and remove it from combat.
        Ability ability = new BecomesBlockedTriggeredAbility(new UntapSourceEffect(), true);
        Effect effect = new RemoveFromCombatSourceEffect();
        effect.setText("and remove it from combat");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

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

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

        Effect effect = new DamagePlayersEffect(2, TargetController.OPPONENT);
        effect.setText("it deals 2 damage to each opponent");
        Ability ability = new BecomesMonstrousSourceTriggeredAbility(effect);
        effect = new DamageAllEffect(2, filter);
        effect.setText("and each creature your opponents control");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

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

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

        this.color.setRed(true);

        // At the beginning of combat on your turn, if you control each creature on the battlefield with the greatest power, gain control
        // of target creature an opponent controls until end of turn. Untap that creature. It gains haste until end of turn.
        TriggeredAbility gainControlAbility = new BeginningOfCombatTriggeredAbility(new GainControlTargetEffect(Duration.EndOfTurn), TargetController.YOU, false);
        gainControlAbility.addEffect(new UntapTargetEffect());
        gainControlAbility.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        gainControlAbility.addTarget(new TargetCreaturePermanent(filter));
        Ability conditionalAbility = new ConditionalTriggeredAbility(gainControlAbility, ControlsEachCreatureWithGreatestPowerCondition.getInstance(), ruleText);
        this.addAbility(conditionalAbility);
    }
View Full Code Here

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

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

        // At the beginning of your upkeep, you may sacrifice Blood Speaker. If you do, search your library for a Demon card, reveal that card, and put it into your hand. Then shuffle your library.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, true);
        ability.addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true, "If you do, search your library for "));
        this.addAbility(ability);

        // Whenever a Demon enters the battlefield under your control, return Blood Speaker from your graveyard to your hand.
        this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), filter, false));
    }
View Full Code Here

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

        super(ownerId, 214, "Conjurer's Closet", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{5}");
        this.expansionSetCode = "AVR";

        // At the beginning of your end step, you may exile target creature you control, then return that card to the battlefield under your control.
        Ability ability = new BeginningOfYourEndStepTriggeredAbility(new ExileTargetForSourceEffect("Conjurer's Closet Exile"), true);
        ability.addEffect(new ReturnToBattlefieldUnderYourControlTargetEffect());
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
    }

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

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

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

        // Whenever Engulfing Slagwurm blocks or becomes blocked by a creature, destroy that creature. You gain life equal to that creature's toughness.
        Ability ability = new BlocksOrBecomesBlockedByCreatureTriggeredAbility(new DestroyTargetEffect(), false);
        ability.addEffect(new EngulfingSlagwurmEffect());
        this.addAbility(ability);
    }

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

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

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

        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new SacrificeSourceEffect(), true);
        ability.addEffect(new DrawCardSourceControllerEffect(3));
        this.addAbility(ability);
    }

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

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

        // Whenever equipped creature deals damage to a creature, tap that creature. That creature doesn't untap during its controller's untap step for as long as Neko-Te remains on the battlefield.
        ContinuousRuleModifiyingEffect skipUntapEffect = new SkipUntapTargetEffect(Duration.WhileOnBattlefield);
        skipUntapEffect.setText("That creature doesn't untap during its controller's untap step for as long as {this} remains on the battlefield");
        ConditionalContinuousRuleModifyingEffect effect = new ConditionalContinuousRuleModifyingEffect(skipUntapEffect, new SourceOnBattelfieldCondition());
        Ability ability = new DealsDamageToACreatureAttachedTriggeredAbility(new TapTargetEffect("that creature"), false, "equipped creature", false, true);
        ability.addEffect(effect);
        this.addAbility(ability);
        // Whenever equipped creature deals damage to a player, that player loses 1 life.
        this.addAbility(new DealsDamageToAPlayerAttachedTriggeredAbility(new LoseLifeTargetEffect(1), "equipped creature", false, true, false));

        // Equip {2}
View Full Code Here

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

        // Whenever equipped creature deals combat damage to a player, you may draw two cards. If you do, discard a card.
        Ability ability = new DealsDamageToAPlayerAttachedTriggeredAbility(new DrawCardSourceControllerEffect(2), "equipped creature", true);
        Effect effect = new DiscardControllerEffect(1);
        effect.setText("If you do, discard a card");
        ability.addEffect(effect);
        this.addAbility(ability);
        // Equip {1}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(1)));
    }
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.