Package mage.abilities.common

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


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

        // Whenever an opponent casts a spell, Kaervek the Merciless deals damage to target creature or player equal to that spell's converted mana cost.
        Ability ability = new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new KaervekTheMercilessEffect(), new FilterSpell(), false, SetTargetPointer.SPELL);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);

    }

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