Package mage.abilities.common

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


        this.color.setRed(true);
        this.color.setWhite(true);

        // Whenever you gain life, you may pay {2}. If you do, Searing Meditation deals 2 damage to target creature or player.
        Ability ability = new SimpleTriggeredAbility(Zone.BATTLEFIELD, GameEvent.EventType.GAINED_LIFE, new DoIfCostPaid(new DamageTargetEffect(2), new GenericManaCost(2)), "Whenever you gain life, ", true);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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