Examples of DealsCombatDamageTriggeredAbility


Examples of mage.abilities.common.DealsCombatDamageTriggeredAbility

        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(
                new BoostSourceEffect(1,2, Duration.WhileOnBattlefield),
                new MoreCardsInHandThanOpponentsCondition(),
                "As long as you have more cards in hand than each opponent, {this} gets +1/+2"));
        ability.addEffect(new ConditionalContinousEffect(
                new GainAbilitySourceEffect(new DealsCombatDamageTriggeredAbility(new GainLifeEffect(3), false)),
                new MoreCardsInHandThanOpponentsCondition(),
                "and has \"Whenever this creature deals combat damage, you gain 3 life.\""));
        this.addAbility(ability);
    }
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.