Package mage.abilities

Examples of mage.abilities.Modes


                    }
                }
            }
            // show for modal spell, which mode was choosen
            if (spell.getSpellAbility().isModal()) {
                Modes modes = spell.getSpellAbility().getModes();
                for(UUID modeId : modes.getSelectedModes()) {
                    modes.setMode(modes.get(modeId));
                    this.rules.add("<span color='green'><i>Chosen mode: " + spell.getSpellAbility().getEffects().getText(modes.get(modeId))+"</i></span>");
                }
            }
        }      
    }
View Full Code Here


        if (!names.isEmpty()) {
            getRules().add("<i>Targets: " + names.toString() + "</i>");
        }
        // show for modal ability, which mode was choosen
        if (ability.isModal()) {
            Modes modes = ability.getModes();
            for(UUID modeId : modes.getSelectedModes()) {
                modes.setMode(modes.get(modeId));
                this.rules.add("<span color='green'><i>Chosen mode: " + ability.getEffects().getText(modes.get(modeId))+"</i></span>");
            }
        }
    }
View Full Code Here

TOP

Related Classes of mage.abilities.Modes

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.