Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.PreventAllDamageToAllEffect


       
        // Creatures you control can't be blocked except by two or more creatures.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByOneAllEffect(2, filter)));
       
        // Prevent all damage that would be dealt to attacking creatures you control.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventAllDamageToAllEffect(Duration.WhileOnBattlefield, filterAttacking)));
       
    }
View Full Code Here


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

        // Prevent all damage that would be dealt to creature tokens you control.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventAllDamageToAllEffect(Duration.WhileOnBattlefield, filter)));
    }
View Full Code Here

    public SafePassage(UUID ownerId) {
        super(ownerId, 28, "Safe Passage", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{W}");
        this.expansionSetCode = "M10";
        this.color.setWhite(true);
        this.getSpellAbility().addEffect(new PreventAllDamageToAllEffect(Duration.EndOfTurn, filter));
    }
View Full Code Here

        // Flash
        this.addAbility(FlashAbility.getInstance());

        // When Ethersworn Shieldmage enters the battlefield, prevent all damage that would be dealt to artifact creatures this turn.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new PreventAllDamageToAllEffect(Duration.EndOfTurn, filter), false));
    }
View Full Code Here

        cardType.add(CardType.ENCHANTMENT);
       
        color.setWhite(true);

        // Prevent all damage that would be dealt to creatures you control.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventAllDamageToAllEffect(Duration.WhileOnBattlefield, new FilterControlledCreatureInPlay())));
    }
View Full Code Here

        this.expansionSetCode = "EVE";

        this.color.setWhite(true);

        // Prevent all damage that would be dealt to you and permanents you control this turn.
        this.getSpellAbility().addEffect(new PreventAllDamageToAllEffect(Duration.EndOfTurn, filter));
       
    }
View Full Code Here

TOP

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

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.