Package mage.abilities

Examples of mage.abilities.ActivatedAbility.canActivate()


    protected boolean canPlay(ActivatedAbility ability, ManaOptions available, MageObject sourceObject, Game game) {
        if (!(ability instanceof ManaAbility)) {
            ActivatedAbility copy = ability.copy();    
            copy.setCheckPlayableMode(); // prevents from endless loops for asking player to use effects by checking this mode
            if (!copy.canActivate(playerId, game)) {
                return false;
            }
            game.getContinuousEffects().costModification(copy, game);

            Card card = game.getCard(ability.getSourceId());
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.