Package mage.abilities

Examples of mage.abilities.SpellAbility.clear()


                        break;
                    default:
                        spellAbility = card.getSpellAbility();
                }

                spellAbility.clear();
                // used if flashbacked spell has a {X} cost
                int amount = source.getManaCostsToPay().getX();
                if (amount == 0) {
                    // add variable cost like Discard X cards to get the X value to the spell
                    // because there is currently no way to set the x value in anotehr way, it's set for the
View Full Code Here


        Card card = (Card) game.getObject(source.getSourceId());
        if (card != null) {
            Player controller = game.getPlayer(source.getControllerId());
            if (controller != null) {
                SpellAbility spellAbility = card.getSpellAbility();
                spellAbility.clear();
                return controller.cast(spellAbility, game, true);
            }
        }
        return false;
    }
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.