Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.PreventCombatDamageToSourceEffect


        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Prevent all combat damage that would be dealt to Seraph of the Sword.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventCombatDamageToSourceEffect(Duration.WhileOnBattlefield)));
    }
View Full Code Here


        this.toughness = new MageInt(1);

        this.addAbility(FlyingAbility.getInstance());

        // {3}{W}: Prevent all combat damage that would be dealt to and dealt by Moonlight Geist this turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventCombatDamageToSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{3}{W}"));
        ability.addEffect(new PreventCombatDamageBySourceEffect(Duration.EndOfTurn));
        this.addAbility(ability);
    }
View Full Code Here

        super(ownerId, 153, "Blinding Powder", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "BOK";
        this.subtype.add("Equipment");

        // Equipped creature has "Unattach Blinding Powder: Prevent all combat damage that would be dealt to this creature this turn."
        Effect effect = new PreventCombatDamageToSourceEffect(Duration.EndOfTurn);
        effect.setText("Prevent all combat damage that would be dealt to this creature this turn");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new BlindingPowderUnattachCost());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.EQUIPMENT, Duration.WhileOnBattlefield)));
        // Equip {2}
        this.addAbility(new EquipAbility(Outcome.PreventDamage, new GenericManaCost(2)));
    }
View Full Code Here

       
        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Prevent all combat damage that would be dealt to and dealt by Fog Bank.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventCombatDamageToSourceEffect(Duration.WhileOnBattlefield));
        ability.addEffect(new PreventCombatDamageBySourceEffect(Duration.WhileOnBattlefield));
        this.addAbility(ability);
    }
View Full Code Here

        this.addAbility(DefenderAbility.getInstance());
        this.addAbility(FlyingAbility.getInstance());

        // Prevent all combat damage that would be dealt to Guard Gomazoa.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventCombatDamageToSourceEffect(Duration.WhileOnBattlefield)));
    }
View Full Code Here

        this.toughness = new MageInt(1);

        // Provoke
        this.addAbility(new ProvokeAbility());
        // {1}{W}: Prevent all combat damage that would be dealt to and dealt by Deftblade Elite this turn.
        Effect effect = new PreventCombatDamageToSourceEffect(Duration.EndOfTurn);
        effect.setText("Prevent all combat damage that would be dealt to");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{W}"));
        effect = new PreventCombatDamageBySourceEffect(Duration.EndOfTurn);
        effect.setText("and dealt by {this} this turn");
        ability.addEffect(effect);
        this.addAbility(ability);

    }
View Full Code Here

TOP

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

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.