Package mage.abilities.effects.common.counter

Examples of mage.abilities.effects.common.counter.AddCountersAllEffect


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

        this.addAbility(new AllyEntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter), true));
    }
View Full Code Here


}

class ArchangelOfThuneAbility extends TriggeredAbilityImpl {

    public ArchangelOfThuneAbility() {
        super(Zone.BATTLEFIELD, new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterControlledCreaturePermanent()), false);
    }
View Full Code Here

        // {T}: Put a +1/+1 counter on Mikaeus.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new TapSourceCost()));

        // {T}, Remove a +1/+1 counter from Mikaeus: Put a +1/+1 counter on each other creature you control.
        Effect effect = new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
        ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance()));
        this.addAbility(ability);
    }
View Full Code Here

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

        // When Rage Forger enters the battlefield, put a +1/+1 counter on each other Shaman creature you control.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter), false));
        // Whenever a creature you control with a +1/+1 counter on it attacks, you may have that creature deal 1 damage to target player.
        Ability ability = new AttacksCreatureYourControlTriggeredAbility(new RageForgerDamageEffect(), true, filterAttack, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
View Full Code Here

        this.color.setGreen(true);
        this.color.setBlack(true);
        this.color.setWhite(true);

        // When Abzan Ascendancy enters the battlefield, put a +1/+1 counter on each creature you control.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterControlledCreaturePermanent()), false));

        // Whenever a nontoken creature you control dies, put a 1/1 white Spirit creature token with flying onto the battlefield.
        this.addAbility(new DiesCreatureTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken("KTK")), false, filter));

    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(2);

        // Whenever Fangren Firstborn attacks, put a +1/+1 counter on each attacking creature.
        this.addAbility(new AttacksTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterAttackingCreature()), false));
    }
View Full Code Here

        // At the beginning of your upkeep, put a +1/+1 counter on each creature with modular you control.
        this.addAbility(new OnEventTriggeredAbility(
                GameEvent.EventType.UPKEEP_STEP_PRE,
                "beginning of your upkeep",
                new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter)));
        // Modular 6
        this.addAbility(new ModularAbility(this, 6));
    }
View Full Code Here

        this.expansionSetCode = "AVR";

        this.color.setWhite(true);

        // Whenever a creature enters the battlefield under your control, put a +1/+1 counter on each creature you control.
        this.addAbility(new CreatureEntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterControlledCreaturePermanent())));
    }
View Full Code Here

        ability.addEffect(effect);
        ability.addTarget(new TargetCreaturePermanent(0,1));
        this.addAbility(ability);
       
        // -2: Put a +1/+1 counter on each creature you control and a loyalty counter on each other planeswalker you control.
        ability = new LoyaltyAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterControlledCreaturePermanent()), -2);
        effect = new AddCountersAllEffect(CounterType.LOYALTY.createInstance(), filter);
        effect.setText("and a loyalty counter on each other planeswalker you control");
        ability.addEffect(effect);
        this.addAbility(ability);
       
        // -7: You get an emblem with "If a source would deal damage to you or a planeswalker you control, prevent all but 1 of that damage."
View Full Code Here

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

        this.addAbility(WitherAbility.getInstance());
        // At the beginning of your upkeep, put a -1/-1 counter on each nonblack creature.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new AddCountersAllEffect(CounterType.M1M1.createInstance(), filter), TargetController.YOU, false));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.counter.AddCountersAllEffect

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.