Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.MultikickerCount


    @Override
    public void adjustTargets(Ability ability, Game game) {
        if (ability instanceof SpellAbility) {
            ability.getTargets().clear();
            int numbTargets = new MultikickerCount().calculate(game, ability, null) + 1;
            ability.addTarget(new TargetCreaturePermanent(0, numbTargets));
        }
    }
View Full Code Here


        return new DeathforgeShamanEffect(this);
    }

    @Override
    public boolean apply(Game game, Ability source) {
        DynamicValue value = new MultikickerCount();
        int damage = value.calculate(game, source, this) * 2;

        Player player = game.getPlayer(source.getFirstTarget());
        if (player != null) {
            player.damage(damage, id, game, false, true);
            return true;
View Full Code Here

        // Multikicker {1}{G}
        this.addAbility(new MultikickerAbility("{1}{G}"));
       
        // Joraga Warcaller enters the battlefield with a +1/+1 counter on it for each time it was kicked.
        this.addAbility(new EntersBattlefieldAbility(
                new AddCountersSourceEffect(CounterType.P1P1.createInstance(0), new MultikickerCount(), true),
                "with a +1/+1 counter on it for each time it was kicked"));

       
        // Other Elf creatures you control get +1/+1 for each +1/+1 counter on Joraga Warcaller.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // When Lightkeeper of Emeria enters the battlefield, you gain 2 life for each time it was kicked.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(new MultikickerCount())));
    }
View Full Code Here

    @Override
    public void adjustTargets(Ability ability, Game game) {
        if (ability instanceof ConditionalTriggeredAbility) {
            ability.getTargets().clear();
            int numbTargets = new MultikickerCount().calculate(game, ability, null);
            if (numbTargets > 0) {
                ability.addTarget(new TargetCardInYourGraveyard(0, numbTargets, filterCard));
            }
        }
    }
View Full Code Here

    @Override
    public void adjustTargets(Ability ability, Game game) {
        if (ability instanceof ConditionalTriggeredAbility) {
            ability.getTargets().clear();
            int numbTargets = new MultikickerCount().calculate(game, ability, null);
            if (numbTargets > 0) {
                ability.addTarget(new TargetCreaturePermanent(0,numbTargets));
            }
        }
    }
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.common.MultikickerCount

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.