Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanentAmount


        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Jugan, the Rising Star dies, you may distribute five +1/+1 counters among any number of target creatures.
        Ability ability = new DiesTriggeredAbility(new JuganTheRisingStarMultiEffect(), true);
        ability.addTarget(new TargetCreaturePermanentAmount(5));
        this.addAbility(ability);
    }
View Full Code Here


        AlternativeCostSourceAbility ability = new AlternativeCostSourceAbility(new PayLifeCost(1));
        ability.addCost(new ExileFromHandCost(new TargetCardInHand(filter)));
        this.addAbility(ability)
       
        // Distribute two -2/-1 counters among one or two target creatures.
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(2));
        this.getSpellAbility().addEffect(new DistributeCountersEffect());
    }
View Full Code Here

        this.color.setGreen(true);

        // Distribute four +1/+1 counters among any number of target creatures.
        this.getSpellAbility().addEffect(new BlessingsOfNatureEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(4));

        this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{G}")));
    }
View Full Code Here

        // {X}{X}{G}: Monstrosity X.
        this.addAbility(new MonstrosityAbility("{X}{X}{G}", Integer.MAX_VALUE));
        // When Polukranos, World Eater becomes monstrous, it deals X damage divided as you choose among any number of target creatures your opponents control. Each of those creatures deals damage equal to its power to Polukranos.
        Ability ability = new BecomesMonstrousSourceTriggeredAbility(new PolukranosWorldEaterEffect());
        ability.addTarget(new TargetCreaturePermanentAmount(1, filter));
        this.addAbility(ability);

    }
View Full Code Here

    @Override
    public void adjustTargets(Ability ability, Game game) {
        if (ability instanceof BecomesMonstrousSourceTriggeredAbility) {
            int xValue = ((BecomesMonstrousSourceTriggeredAbility) ability).getMonstrosityValue();
            ability.getTargets().clear();
            ability.addTarget(new TargetCreaturePermanentAmount(xValue, filter));
        }
    }
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.