Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanentAmount


        // If four or more creatures are attacking, you may pay {1}{W} rather than pay Arrow Volley Trap's mana cost.
        this.getSpellAbility().addAlternativeCost(new ArrowVolleyTrapAlternativeCost());

        // Arrow Volley Trap deals 5 damage divided as you choose among any number of target attacking creatures.
        this.getSpellAbility().addEffect(new DamageMultiEffect(5));
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(5, filter));

    }
View Full Code Here


                        if (ability.getTargets().get(index).getNumberOfTargets() == 1) {
                            ability.getTargets().get(index).clearChosen();
                        }
                        if (ability.getTargets().get(index) instanceof TargetCreaturePermanentAmount) {
                            // supports only to set the complete amount to one target
                            TargetCreaturePermanentAmount targetAmount = (TargetCreaturePermanentAmount) ability.getTargets().get(index);
                            targetAmount.setAmount(ability, game);
                            int amount = targetAmount.getAmountRemaining();
                            targetAmount.addTarget(id, amount,ability, game);
                            targetsSet++;
                        } else {
                            ability.getTargets().get(index).addTarget(id, ability, game);
                            targetsSet++;
                        }
View Full Code Here

        // Vastwood Hydra enters the battlefield with X +1/+1 counters on it.
        this.addAbility(new EntersBattlefieldAbility(new VastwoodHydraEffect()));
        // When Vastwood Hydra dies, you may distribute a number of +1/+1 counters equal to the number of +1/+1 counters on Vastwood Hydra among any number of creatures you control.
        Ability ability = new DiesTriggeredAbility(new VastwoodHydraDistributeEffect(), true);
        ability.addTarget(new TargetCreaturePermanentAmount(new CountersCount(CounterType.P1P1), filter));
        this.addAbility(ability);
    }
View Full Code Here

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

        // When Armament Corps enters the battlefield, distribute two +1/+1 counters among one or two target creatures you control.
        Ability ability = new EntersBattlefieldTriggeredAbility(new ArmamentCorpsDistributeEffect(), false);
        ability.addTarget(new TargetCreaturePermanentAmount(2));
        this.addAbility(ability);
    }
View Full Code Here

       
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(4)), false));

        // +1: Distribute three +1/+1 counters among one, two, or three target creatures you control
        Ability ability = new LoyaltyAbility(new AjaniMentorOfHeroesAddCountersEffect(), 1);
        ability.addTarget(new TargetCreaturePermanentAmount(3, filter));
        this.addAbility(ability);
       
        // +1: Look at the top four cards of your library. You may reveal an Aura, creature, or planeswalker card from among them and put that card into your hand. Put the rest on the bottom of your library in any order.
        this.addAbility(new LoyaltyAbility(new LookLibraryAndPickControllerEffect(4,1, filterCard,true, false, Zone.HAND, true), 1));
       
View Full Code Here

        this.getSpellAbility().addMode(mode);

        // *Distribute two +1/+1 counters among one or two target creatures.
        mode = new Mode();
        mode.getEffects().add(new AbzanCharmDistributeEffect());
        mode.getTargets().add(new TargetCreaturePermanentAmount(2));
        this.getSpellAbility().addMode(mode);

    }
View Full Code Here

        this.color.setRed(true);

        // Ignite Disorder deals 3 damage divided as you choose among one, two, or three target white and/or blue creatures.
        this.getSpellAbility().addEffect(new DamageMultiEffect(3));
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(3, filter));
    }
View Full Code Here

        this.getSpellAbility().addCost(new PayVariableLifeCost(true));

        // Fire Covenant deals X damage divided as you choose among any number of target creatures.
        DynamicValue xValue = new GetXValue();
        this.getSpellAbility().addEffect(new DamageMultiEffect(xValue));
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(xValue));
    }
View Full Code Here

        this.color.setRed(true);
        this.color.setWhite(true);

        // Fire at Will deals 3 damage divided as you choose among one, two, or three target attacking or blocking creatures.
        this.getSpellAbility().addEffect(new DamageMultiEffect(3));
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(3, filter));

    }
View Full Code Here

        filter.add(Predicates.not(new CardIdPredicate(this.getId()))); // the exile cost can never be paid with the card itself
        this.addAbility(new AlternativeCostSourceAbility(new ExileFromHandCost(new TargetCardInHand(filter))));
       
        // Pyrokinesis deals 4 damage divided as you choose among any number of target creatures.
        this.getSpellAbility().addEffect(new DamageMultiEffect(4));
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(4));
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetCreaturePermanentAmount

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.