Package mage.watchers.common

Examples of mage.watchers.common.PermanentTappedForManaWatcher


        this.color.setGreen(true);

        // If you tap a permanent for mana, it produces twice as much of that mana instead.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ManaReflectionReplacementEffect()));
        this.addWatcher(new PermanentTappedForManaWatcher());

    }
View Full Code Here


    public boolean applies(GameEvent event, Ability source, Game game) {
        if (event.getType() == GameEvent.EventType.ADD_MANA
                && event.getPlayerId().equals(source.getControllerId())
                && game.getPermanentOrLKIBattlefield(event.getSourceId()) != null) {
            UUID permanentId = game.getPermanentOrLKIBattlefield(event.getSourceId()).getId();
            PermanentTappedForManaWatcher watcher = (PermanentTappedForManaWatcher) game.getState().getWatchers().get("PermanentTappedForMana");
            if (watcher != null) {
                if (watcher.permanentId.contains(permanentId)) {
                    watcher.permanentId.remove(permanentId);
                    return true;
                }
View Full Code Here

TOP

Related Classes of mage.watchers.common.PermanentTappedForManaWatcher

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.