Package mage.watchers.common

Examples of mage.watchers.common.PlayerLostLifeWatcher


class SourceControllerLostLifeCount implements DynamicValue {

    @Override
    public int calculate(Game game, Ability sourceAbility, Effect effect) {
        PlayerLostLifeWatcher watcher = (PlayerLostLifeWatcher) game.getState().getWatchers().get("PlayerLostLifeWatcher");
        if (watcher != null) {
            return watcher.getLiveLost(sourceAbility.getControllerId());
        }
        return 0;
    }
View Full Code Here

TOP

Related Classes of mage.watchers.common.PlayerLostLifeWatcher

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.