Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.DamageTargetEffect


        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Sliver creatures you control have "Whenever this creature attacks, it deals 1 damage to target creature or player."
        Ability ability = new AttacksTriggeredAbility(new DamageTargetEffect(1), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
                new GainAbilityAllEffect(ability,
                Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Sliver","Sliver creatures"),
                "Sliver creatures you control have \"Whenever this creature attacks, it deals 1 damage to target creature or player.\"")));
View Full Code Here


        // As an additional cost to cast Shard Volley, sacrifice a land.
        this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));

        // Shard Volley deals 3 damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here

        this.expansionSetCode = "MOR";

        this.color.setRed(true);

        // Release the Ants deals 1 damage to target creature or player. Clash with an opponent. If you win, return Release the Ants to its owner's hand.
        this.getSpellAbility().addEffect(new DamageTargetEffect(1));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        this.getSpellAbility().addEffect(ClashWinReturnToHandSpellEffect.getInstance());
    }
View Full Code Here

        super(ownerId, 244, "Soldier Replica", Rarity.COMMON, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}");
        this.expansionSetCode = "MRD";
        this.subtype.add("Soldier");
        this.power = new MageInt(1);
        this.toughness = new MageInt(3);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new ManaCostsImpl("{1}{W}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCreaturePermanent(new FilterAttackingOrBlockingCreature()));
        this.addAbility(ability);
    }
View Full Code Here

        // +1: Until end of turn, Sarkhan, the Dragonspeaker becomes a legendary 4/4 red Dragon creature with flying, indestructible, and haste.
        this.addAbility(new LoyaltyAbility(new SarkhanTheDragonspeakerEffect(), 1));
       
        // -3: Sarkhan, the Dragonspeaker deals 4 damage to target creature.
        LoyaltyAbility ability = new LoyaltyAbility(new DamageTargetEffect(4), -3);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
       
        // -6: You get an emblem with "At the beginning of your draw step, draw two additional cards" and "At the beginning of your end step, discard your hand."
        Effect effect = new GetEmblemEffect(new SarkhanTheDragonspeakerEmblem());
View Full Code Here

        this.expansionSetCode = "ISD";

        this.color.setRed(true);

        // Geistflame deals 1 damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(1));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());

        // Flashback {3}{R}
        this.addAbility(new FlashbackAbility(new ManaCostsImpl("{3}{R}"), TimingRule.INSTANT));
    }
View Full Code Here

        this.expansionSetCode = "M15";

        this.color.setRed(true);

        // Blastfire Bolt deals 5 damage to target creature.  Destroy all Equipment attached to that creature.
        this.getSpellAbility().addEffect(new DamageTargetEffect(5));
        this.getSpellAbility().addEffect(new DestroyAllAttachedEquipmentEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

}

class HeartPiercerBowAbility extends AttacksAttachedTriggeredAbility {

    public HeartPiercerBowAbility() {
        super(new DamageTargetEffect(1), AttachmentType.EQUIPMENT, false);
    }
View Full Code Here

        // *Tap target creature
        this.getSpellAbility().addEffect(new TapTargetEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        // *Winterflame deals 2 damage to target creature
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(2));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);

    }
View Full Code Here

}

class ScryTriggeredAbility extends TriggeredAbilityImpl {

    public ScryTriggeredAbility() {
        super(Zone.BATTLEFIELD, new DoIfCostPaid(new DamageTargetEffect(2), new GenericManaCost(2)), false);
        this.addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here

TOP

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

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.