Examples of CountersCount


Examples of mage.abilities.dynamicvalue.common.CountersCount

        // Orochi Hatchery enters the battlefield with X charge counters on it.
        this.addAbility(new EntersBattlefieldAbility(new OrochiHatcheryEffect(), "with X charge counters on it"));

        // {5}, {T}: Put a 1/1 green Snake creature token onto the battlefield for each charge counter on Orochi Hatchery.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SnakeToken(),new CountersCount(CounterType.CHARGE)), new GenericManaCost(5));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{1}{R}"));
        ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
        this.addAbility(ability);

        // At the beginning of your end step, you may have Goblin Razerunners deal damage equal to the number of +1/+1 counters on it to target player.
        ability = new BeginningOfYourEndStepTriggeredAbility(new DamageTargetEffect(new CountersCount(CounterType.P1P1)), true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
        this.addAbility(new DevourAbility(DevourFactor.Devour2));

        // Whenever Preyseizer Dragon attacks, it deals damage to target creature or player equal to the number of +1/+1 counters on Preyseizer Dragon.
        Ability ability = new AttacksTriggeredAbility(new DamageTargetEffect(new CountersCount(CounterType.P1P1)), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        this.expansionSetCode = "5DN";

        // Sunburst
        this.addAbility(new SunburstAbility(this));
        // {2}, Sacrifice Heliophial: Heliophial deals damage equal to the number of charge counters on it to target creature or player.
        Effect effect = new DamageTargetEffect(new CountersCount(CounterType.CHARGE));
        effect.setText("{this} deals damage equal to the number of charge counters on it to target creature or player");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        this.subtype.add("Equipment");

        // Sunburst
        this.addAbility(new SunburstAbility(this));
        // Equipped creature gets +X/+X, where X is the number of charge counters on Opaline Bracers.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(new CountersCount(CounterType.CHARGE), new CountersCount(CounterType.CHARGE))));
        // Equip {2}
        this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(2)));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        this.expansionSetCode = "5DN";

        // Sunburst
        this.addAbility(new SunburstAbility(this));
        // At the beginning of your upkeep, you may gain life equal to the number of charge counters on Clearwater Goblet.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new GainLifeEffect(new CountersCount(CounterType.CHARGE)), TargetController.YOU, true));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        //At the beginning of your upkeep, you may put a page counter on Barrin's Codex.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new AddCountersSourceEffect(CounterType.PAGE.createInstance()), TargetController.YOU, true));

        //{4}, {T}, Sacrifice Barrin's Codex: Draw X cards, where X is the number of page counters on Barrin's Codex.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(new CountersCount(CounterType.PAGE)), new ManaCostsImpl("{4}"));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        super("", "Construct artifact creature with \"This creature's power and toughness are each equal to the number of charge counters on it.\"");
        cardType.add(CardType.CREATURE);
        subtype.add("Construct");
        power = new MageInt(0);
        toughness = new MageInt(0);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new SetPowerToughnessSourceEffect(new CountersCount(CounterType.CHARGE), Duration.WhileOnBattlefield)));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        this.toughness = new MageInt(0);

        // Sunburst
        this.addAbility(new SunburstAbility(this));
        // {tap}: Double the number of +1/+1 counters on Solarion.
        Effect effect = new AddCountersSourceEffect(CounterType.P1P1.createInstance(1), new CountersCount(CounterType.P1P1), true);
        effect.setText("Double the number of +1/+1 counters on {this}");
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost()));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CountersCount

        // Cumulative upkeep {G}
        this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{G}")));
        // {2}{G}, Pay 3 life for each velocity counter on Tornado: Destroy target permanent and put a velocity counter on Tornado. Activate this ability only once each turn.
        Ability ability = new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{G}"));
        DynamicValue lifeToPayAmount = new MultipliedValue(new CountersCount(CounterType.VELOCITY), 3);
        ability.addCost(new PayLifeCost(lifeToPayAmount, "3 life for each velocity counter on {source}"));
        ability.addTarget(new TargetPermanent());
        Effect effect = new AddCountersSourceEffect(CounterType.VELOCITY.createInstance());
        effect.setText("and put a velocity counter on {source}");
        ability.addEffect(effect);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.