Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.DamageTargetEffect


        LoyaltyAbility ability1 = new LoyaltyAbility(new RalZarekTapUntapEffect(), 1);
        ability1.addTarget(new TargetPermanent(2, 2, new FilterPermanent(), false));
        this.addAbility(ability1);

        // -2: Ral Zarek deals 3 damage to target creature or player.
        LoyaltyAbility ability2 = new LoyaltyAbility(new DamageTargetEffect(3), -2);
        ability2.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability2);

        // -7: Flip five coins. Take an extra turn after this one for each coin that comes up heads.
        this.addAbility(new LoyaltyAbility(new RalZarekExtraTurnsEffect(), -7));
View Full Code Here


        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        this.addAbility(new LevelUpAbility(new ManaCostsImpl("{3}{R}")));
        Abilities<Ability> abilities1 = new AbilitiesImpl<Ability>();
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        abilities1.add(ability);

        Abilities<Ability> abilities2 = new AbilitiesImpl<Ability>();
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        abilities2.add(ability);

        LevelerCardBuilder.construct(this,
                new LevelerCardBuilder.LevelAbility(1, 2, abilities1, 2, 3),
View Full Code Here

                    this.getTargets().clear();
                    this.getEffects().clear();
                    if (card.getCardType().contains(CardType.LAND)) {
                        this.addEffect(new DrawCardSourceControllerEffect(1));
                    } else {
                        this.addEffect(new DamageTargetEffect(3));
                        this.addTarget(new TargetCreatureOrPlayer());
                    }
                    return true;
                }
            }
View Full Code Here

}

class CurseOfThePiercedHeartAbility extends TriggeredAbilityImpl {

    public CurseOfThePiercedHeartAbility() {
        super(Zone.BATTLEFIELD, new DamageTargetEffect(1));
    }
View Full Code Here

        // As an additional cost to cast Harvest Pyre, exile X cards from your graveyard.
        this.getSpellAbility().addCost(new ExileXFromYourGraveCost(new FilterCard("cards from your graveyard")));

        // Harvest Pyre deals X damage to target creature.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new DamageTargetEffect(new GetXValue()));
    }
View Full Code Here

        // {T}: Add {1} to your mana pool.
        this.addAbility(new ColorlessManaAbility());

        // {3}{B}{R}, {T}: Stensia Bloodhall deals 2 damage to target player.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{3}{B}{R}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "ISD";

        this.color.setRed(true);

        // Devil's Play deals X damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        // Flashback {X}{R}{R}{R}
        this.addAbility(new FlashbackAbility(new ManaCostsImpl("{X}{R}{R}{R}"), TimingRule.SORCERY));
    }
View Full Code Here

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

        // When Pitchburn Devils dies, it deals 3 damage to target creature or player.
        DiesTriggeredAbility ability = new DiesTriggeredAbility(new DamageTargetEffect(3));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.toughness = new MageInt(5);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Spawn of Thraxes enters the battlefield, it deals damage to target creature or player equal to the number of Mountains you control.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);       
    }
View Full Code Here

        this.expansionSetCode = "JOU";

        this.color.setRed(true);

        // Spite of Mogis deals damage to target creature equal to the number of instant and sorcery cards in your graveyard. Scry 1.
        this.getSpellAbility().addEffect(new DamageTargetEffect(new CardsInControllerGraveyardCount(new FilterInstantOrSorceryCard("instant and sorcery cards"))));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new ScryEffect(1));
    }
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.