Package mage.game.events

Examples of mage.game.events.ManaEvent


        addMana(manaToAdd, game, source, false);
    }
   
    public void addMana(Mana manaToAdd, Game game, Ability source, boolean emptyOnTurnsEnd) {
        Mana mana = manaToAdd.copy();
        if (!game.replaceEvent(new ManaEvent(EventType.ADD_MANA, source.getId(), source.getSourceId(), source.getControllerId(), mana))) {
            if (mana instanceof ConditionalMana) {
                ManaPoolItem item = new ManaPoolItem((ConditionalMana)mana, source.getSourceId());
                if (emptyOnTurnsEnd) {
                    item.setDuration(Duration.EndOfTurn);
                }
View Full Code Here

TOP

Related Classes of mage.game.events.ManaEvent

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.