Examples of loseLife()


Examples of mage.players.Player.loseLife()

  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    Card card = player.getLibrary().removeFromTop(game);
    if (card != null) {
      card.moveToZone(Zone.HAND, source.getId(), game, false);
      player.loseLife(card.getManaCost().convertedManaCost(), game);
      Cards cards = new CardsImpl();
      cards.add(card);
      player.revealCards(cards, game);
      return true;
    }
View Full Code Here

Examples of mage.players.Player.loseLife()

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getFirstTarget());
    if (player != null) {
      player.loseLife(amount, game);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.loseLife()

    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            int amount = (player.getLife() + 1) / 2;
            if (amount > 0) {
                player.loseLife(amount, game);
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.loseLife()

    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getFirstTarget());
        if (player != null) {
            Integer amount = (int) Math.ceil(player.getLife() / 2f);
            if (amount > 0) {
                player.loseLife(amount, game);
                game.getState().setValue(source.getSourceId().toString() + "_BloodTribute", amount);
                return true;
            }
        }
        return false;
View Full Code Here

Examples of mage.players.Player.loseLife()

        int total = 0;
        for (UUID opponentUuid : opponents) {
            Player opponent = game.getPlayer(opponentUuid);
            if (opponent != null) {
                total += opponent.loseLife(amount, game);
            }
            if (total > 0) {
                player.gainLife(total, game);
            }
        }
View Full Code Here

Examples of mage.players.Player.loseLife()

    @Override
    public boolean apply(Game game, Ability source) {
        for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
            Player player = game.getPlayer(playerId);
            if (player != null) {
                player.loseLife(amount.calculate(game, source, this), game);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.loseLife()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(targetPointer.getFirst(game, source));
        if (player != null) {
            player.loseLife(amount.calculate(game, source, this), game);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.loseLife()

    @Override
    public boolean apply(Game game, Ability source) {
        for (UUID opponentId: game.getOpponents(source.getControllerId())) {
            Player player = game.getPlayer(opponentId);
            if (player != null) {
                player.loseLife(amount.calculate(game, source, this), game);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.loseLife()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            player.loseLife(amount.calculate(game, source, this), game);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.loseLife()

    @Override
    public boolean apply(Game game, Ability source) {
        for (UUID defenderId : game.getCombat().getDefenders()) {
            Player defender = game.getPlayer(defenderId);
            if (defender != null) {
                defender.loseLife(amount.calculate(game, source, this), game);
            }
        }
        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.