Package mage.target.common

Examples of mage.target.common.TargetAttackingCreature


        // If a black creature with flying is attacking, you may pay {G} rather than pay Slingbow Trap's mana cost.
        this.getSpellAbility().addAlternativeCost(new SlingbowTrapAlternativeCost());

        // Destroy target attacking creature with flying.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature(1, 1, filter, false));
    }
View Full Code Here


    public Condemn(UUID ownerId) {
        super(ownerId, 13, "Condemn", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{W}");
        this.expansionSetCode = "10E";
        this.color.setWhite(true);
        // Put target attacking creature on the bottom of its owner's library.
        this.getSpellAbility().addTarget(new TargetAttackingCreature());
        this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(false));
        // Its controller gains life equal to its toughness.
        this.getSpellAbility().addEffect(new CondemnEffect());

    }
View Full Code Here

        this.color.setWhite(true);

        // Exile target attacking creature.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature());
        // Draw a card.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {1}{W}, Sacrifice Lieutenant Kirtar: Exile target attacking creature.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}{W}"));
        ability.addTarget(new TargetAttackingCreature());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setWhite(true);

        // Hail of Arrows deals X damage divided as you choose among any number of target attacking creatures.
        this.getSpellAbility().addEffect(new DamageMultiEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetAttackingCreature(0, Integer.MAX_VALUE, new FilterAttackingCreature(), true));
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.G));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetAttackingCreature());
        this.addAbility(ability);
    }
View Full Code Here

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

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 1, Duration.EndOfTurn), new TapSourceCost());
        ability.addTarget(new TargetAttackingCreature());
        this.addAbility(ability);
    }
View Full Code Here

        this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(1, 0, 0, 0, 0, 1,0 ), new TapSourceCost()));

        // {1}, {tap}: Balduvian Trading Post deals 1 damage to target attacking creature.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new GenericManaCost(1));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetAttackingCreature());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setWhite(true);

        // Exile target attacking creature.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature());
        // Cycling {5}{G}{W}{U}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{G}{W}{U}")));
        // When you cycle Resounding Silence, exile up to two target attacking creatures.
        Ability ability = new CycleTriggeredAbility(new ExileTargetEffect());
        TargetPermanent target = new TargetAttackingCreature(0, 2, new FilterAttackingCreature("up to two target attacking creatures"), false);
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

class VengefulPharaohTriggeredAbility extends TriggeredAbilityImpl {

    public VengefulPharaohTriggeredAbility() {
        super(Zone.GRAVEYARD, new VengefulPharaohEffect(), false);
        this.addTarget(new TargetAttackingCreature());
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetAttackingCreature

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.