Package mage.counters

Examples of mage.counters.Counter


            TargetControlledPermanent target = new TargetControlledPermanent(filter);
            if (target.canChoose(source.getControllerId(), game)) {
                if (player.choose(Outcome.Neutral, target, source.getSourceId(), game)) {
                    Permanent permanent = game.getPermanent(target.getFirstTarget());
                    if (permanent != null) {
                        permanent.addCounters(new Counter("phylactery"), game);
                    }
                }
            }
        }
        return false;
View Full Code Here


    }
}
class AzorsElocutorsTriggeredAbility extends TriggeredAbilityImpl {

    public AzorsElocutorsTriggeredAbility() {
        super(Zone.BATTLEFIELD, new RemoveCounterSourceEffect(new Counter("filibuster")), false);
    }
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(source.getSourceId());
        if (permanent != null) {
            permanent.addCounters(new Counter("filibuster"), game);
            if (permanent.getCounters().getCount("filibuster") > 4) {
                Player player = game.getPlayer(permanent.getControllerId());
                if (player != null) {
                    player.won(game);
                }
View Full Code Here

        Permanent target = game.getPermanent(source.getFirstTarget());
        if (target == null) {
            return false;
        }
        for (Counter counter : target.getCounters().values()) {
            Counter newCounter = new Counter(counter.getName(), counter.getCount());
            target.addCounters(newCounter, game);
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of mage.counters.Counter

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.