Package mage.watchers.common

Examples of mage.watchers.common.BloodthirstWatcher


    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            BloodthirstWatcher watcher = (BloodthirstWatcher) game.getState().getWatchers().get("DamagedOpponents", source.getControllerId());
            if (watcher != null && watcher.conditionMet()) {
                Permanent p = game.getPermanent(source.getSourceId());
                if (p != null) {
                    p.addCounters(CounterType.P1P1.createInstance(amount), game);

                }
View Full Code Here


        this.canGainLife = true;
        this.canLoseLife = true;
        this.topCardRevealed = false;
        this.setLife(game.getLife(), game);
        this.setReachedNextTurnAfterLeaving(false);
        game.getState().getWatchers().add(new BloodthirstWatcher(playerId));
        this.castSourceIdWithoutMana = null;
    }
View Full Code Here

    public OpponentWasDealtDamageCondition() {
    }

    @Override
    public boolean apply(Game game, Ability source) {
        BloodthirstWatcher watcher = (BloodthirstWatcher) game.getState().getWatchers().get("DamagedOpponents", source.getControllerId());
        return !watcher.conditionMet();
    }
View Full Code Here

        return false;
    }

    @Override
    public boolean applies(Permanent permanent, Ability source, Game game) {
        BloodthirstWatcher watcher = (BloodthirstWatcher) game.getState().getWatchers().get("DamagedOpponents", source.getControllerId());
        return !watcher.conditionMet();
    }
View Full Code Here

TOP

Related Classes of mage.watchers.common.BloodthirstWatcher

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.