Package mage.watchers.common

Examples of mage.watchers.common.DamagedByWatcher.wasDamaged()


        if (event.getType().equals(EventType.ZONE_CHANGE)) {
            ZoneChangeEvent  zce = (ZoneChangeEvent) event;
            if (zce.isDiesEvent()) {
                DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", source.getSourceId());
                if (watcher != null) {
                    return watcher.wasDamaged(zce.getTarget());
                }
            }
        }
        return false;
    }
View Full Code Here


    @Override
    public boolean applies(GameEvent event, Ability source, Game game) {
        if (event.getType() == EventType.REGENERATE) {
            DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", source.getSourceId());
            if (watcher != null) {
                return watcher.wasDamaged(event.getTargetId(), game);
            }
        }
        return false;
    }
View Full Code Here

    @Override
    public boolean applies(GameEvent event, Ability source, Game game) {
        if (event.getType() == EventType.REGENERATE) {
            DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", source.getSourceId());
            if (watcher != null) {
                return watcher.wasDamaged(event.getTargetId(), game);
            }
        }
        return false;
    }
View Full Code Here

    @Override
    public boolean applies(Permanent permanent, Ability source, Game game) {
        DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", source.getSourceId());
        if (watcher != null) {
            return watcher.wasDamaged(permanent);
        }
        return false;
    }

    @Override
View Full Code Here

    @Override
    public boolean applies(GameEvent event, Ability source, Game game) {
        if (event.getType() == EventType.REGENERATE) {
            DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", source.getSourceId());
            if (watcher != null) {
                return watcher.wasDamaged(event.getTargetId(), game);
            }
        }
        return false;
    }
View Full Code Here

        if (event.getType().equals(EventType.ZONE_CHANGE)) {
            ZoneChangeEvent  zce = (ZoneChangeEvent) event;
            if (zce.isDiesEvent()) {
                DamagedByWatcher watcher = (DamagedByWatcher) game.getState().getWatchers().get("DamagedByWatcher", this.getSourceId());
                if (watcher != null) {
                    return watcher.wasDamaged(zce.getTarget());
                }
            }
        }
        return false;
    }
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.