Package mage.watchers.common

Examples of mage.watchers.common.BloodthirstWatcher.conditionMet()


    @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


    }

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

    @Override
    public String toString() {
  return "if an opponent was dealt damage this turn";
View Full Code Here

    }

    @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
Copyright © 2018 www.massapi.com. 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.