Examples of DealsDamageToOpponentTriggeredAbility


Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

       
        // Enchanted creature gets +1/+1
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)));
       
        // and has "Whenever this creature deals damage to an opponent, you may draw a card."
        Ability gainedAbility = new DealsDamageToOpponentTriggeredAbility(new DrawCardSourceControllerEffect(1), true);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA)));
       
        // Totem armor
        this.addAbility(new TotemArmorAbility());
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // Whenever Thieving Magpie deals damage to an opponent, draw a card.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DrawCardSourceControllerEffect(1)));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        Effect effect = new GainAbilityTargetEffect(WitherAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("that creature gains wither until end of turn");
        this.addAbility(new BlocksOrBecomesBlockedByCreatureTriggeredAbility(effect, false));

        // Whenever Witherscale Wurm deals damage to an opponent, remove all -1/-1 counters from it.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new WitherscaleWurmEffect(), false));

    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        this.toughness = new MageInt(1);

        // Shadow
        this.addAbility(ShadowAbility.getInstance());
        // Whenever Looter il-Kor deals damage to an opponent, draw a card, then discard a card.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DrawDiscardControllerEffect()));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        this.toughness = new MageInt(6);

        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // Whenever Charnelhoard Wurm deals damage to an opponent, you may return target card from your graveyard to your hand.
        Ability ability = new DealsDamageToOpponentTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), true);
        ability.addTarget(new TargetCardInYourGraveyard());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        this.color.setGreen(true);
        this.power = new MageInt(8);
        this.toughness = new MageInt(8);

        // Whenever Hydra Omnivore deals combat damage to an opponent, it deals that much damage to each other opponent.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new HydraOmnivoreEffect(), false, true));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        this.toughness = new MageInt(3);

        // Horsemanship
        this.addAbility(HorsemanshipAbility.getInstance());
        // Whenever Lu Xun, Scholar General deals damage to an opponent, you may draw a card.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DrawCardSourceControllerEffect(1), true));

    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        // Soulbond
        this.addAbility(SoulbondAbility.getInstance());

        // As long as Tandem Lookout is paired with another creature, each of those creatures has "Whenever this creature deals damage to an opponent, draw a card."
        Ability ability = new DealsDamageToOpponentTriggeredAbility(new DrawCardSourceControllerEffect(1));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityPairedEffect(ability, ruleText)));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        this.addAbility(FlyingAbility.getInstance());
        // At the beginning of your upkeep, sacrifice Nicol Bolas unless you pay {U}{B}{R}.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{U}{B}{R}")), TargetController.YOU, false));
       
        // Whenever Nicol Bolas deals damage to an opponent, that player discards his or her hand.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DiscardHandTargetEffect("that player"), false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility

        this.toughness = new MageInt(2);

        this.addAbility(FlyingAbility.getInstance());

        // Whenever Hypnotic Specter deals damage to an opponent, that player discards a card at random.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DiscardTargetEffect(1, true)));
    }
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.