Examples of canLoyaltyBeUsed()


Examples of mage.game.permanent.Permanent.canLoyaltyBeUsed()

    }
   
    @Override
    public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
        Permanent planeswalker = game.getPermanent(sourceId);
        return planeswalker!= null && planeswalker.canLoyaltyBeUsed(game);
    }

    @Override
    public Cost getFixedCostsFromAnnouncedValue(int xValue) {
        return new PayLoyaltyCost(-xValue);
View Full Code Here

Examples of mage.game.permanent.Permanent.canLoyaltyBeUsed()

    }

    @Override
    public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
        Permanent planeswalker = game.getPermanent(sourceId);
        return planeswalker != null && planeswalker.getCounters().getCount(CounterType.LOYALTY) + amount >= 0 && planeswalker.canLoyaltyBeUsed(game);
    }

    @Override
    public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {
        Permanent planeswalker = game.getPermanent(sourceId);
View Full Code Here

Examples of mage.game.permanent.Permanent.canLoyaltyBeUsed()

    }

    @Override
    public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {
        Permanent planeswalker = game.getPermanent(sourceId);
        if (planeswalker.getCounters().getCount(CounterType.LOYALTY) + amount >= 0 && planeswalker.canLoyaltyBeUsed(game)) {
            if (amount > 0) {
                planeswalker.getCounters().addCounter(CounterType.LOYALTY.createInstance(amount));
            } else if (amount < 0) {
                planeswalker.getCounters().removeCounter(CounterType.LOYALTY, Math.abs(amount));
            }
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.