Examples of canLoseByZeroOrLessLife()


Examples of mage.players.Player.canLoseByZeroOrLessLife()

    @Override
    public boolean applies(GameEvent event, Ability source, Game game) {
        if (event.getType() == EventType.LOSES && event.getPlayerId().equals(source.getControllerId())) {
            Player player = game.getPlayer(event.getPlayerId());
              if (!player.hasLost() && (
                        (player.getLife() > 0 || !player.canLoseByZeroOrLessLife())
                      && player.isEmptyDraw()
                      && player.getCounters().getCount(CounterType.POISON) < 10)) {
                return true;
            }
        }
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.