Package mage.counters

Examples of mage.counters.BoostCounter


        this.toughness = new MageInt(6);

        // Defender
        this.addAbility(DefenderAbility.getInstance());
        // Whenever Shield Sphere blocks, put a -0/-1 counter on it.
        this.addAbility(new BlocksTriggeredAbility(new AddCountersSourceEffect(new BoostCounter(0, -1)), false));
    }
View Full Code Here


            Target multiTarget = source.getTargets().get(0);
            for (UUID target: multiTarget.getTargets()) {
                Permanent permanent = game.getPermanent(target);
                if (permanent != null) {
                    int amount = multiTarget.getTargetAmount(target);
                    permanent.addCounters(new BoostCounter(-2, -1, amount), game);
                }
            }
        }
        return true;
    }
View Full Code Here

    @Override
    public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {
        Permanent permanent = game.getPermanent(sourceId);
        if (permanent != null) {
            permanent.addCounters(new BoostCounter(0, -1), game);
            this.paid = true;
        }
        return paid;
    }
View Full Code Here

TOP

Related Classes of mage.counters.BoostCounter

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.