Package mage.abilities.common

Examples of mage.abilities.common.SimpleTriggeredAbility


        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);
    }
View Full Code Here


        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player discards a card, you may gain 1 life.
        this.addAbility(new SimpleTriggeredAbility(
                Zone.BATTLEFIELD, EventType.DISCARDED_CARD, new GainLifeEffect(1), "Whenever a player discards a card, you may", false, true));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.SimpleTriggeredAbility

Copyright © 2018 www.massapicom. 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.