Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.PreventDamageToSourceEffect


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

        // Pay 1 life: Prevent the next 1 damage that would be dealt to Ethereal Champion this turn.
        Effect effect = new PreventDamageToSourceEffect(Duration.EndOfTurn, 1);
        effect.setText("Pay 1 life: Prevent the next 1 damage that would be dealt to {source} this turn");
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new PayLifeCost(1)));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.PreventDamageToSourceEffect

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.