Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.PreventNextDamageFromChosenSourceToTargetEffect


        this.expansionSetCode = "ULG";

        this.color.setWhite(true);

        // Sacrifice a creature: The next time a source of your choice would deal damage to target creature or player this turn, prevent that damage.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventNextDamageFromChosenSourceToTargetEffect(Duration.EndOfTurn), new SacrificeTargetCost(new TargetControlledCreaturePermanent(new FilterControlledCreaturePermanent("a creature"))));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

TOP

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

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.