Examples of gainLife()


Examples of mage.players.Player.gainLife()

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    if (player != null) {
      player.gainLife(life, game);
    }
    return true;
  }

  @Override
View Full Code Here

Examples of mage.players.Player.gainLife()

      }
      if (damageDone > 0) {
        Permanent source = game.getPermanent(sourceId);
        if (source != null && source.getAbilities().containsKey(LifelinkAbility.getInstance().getId())) {
          Player player = game.getPlayer(source.getControllerId());
          player.gainLife(damageDone, game);
        }
        if (source != null && source.getAbilities().containsKey(DeathtouchAbility.getInstance().getId())) {
          deathtouched = true;
        }
      }
View Full Code Here

Examples of mage.players.Player.gainLife()

  @Override
  public boolean apply(Game game, Ability source) {
    for (UUID playerId: source.getTargets().get(0).getTargets()) {
      Player player = game.getPlayer(playerId);
      if (player != null) {
        player.gainLife(life, game);
      }
    }
    return true;
  }
View Full Code Here

Examples of mage.players.Player.gainLife()

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    Permanent permanent = game.getPermanent(source.getSourceId());
    if (player != null && permanent != null) {
      player.gainLife(5, game);
      permanent.moveToZone(Zone.LIBRARY, source.getId(), game, true);
      player.getLibrary().addAll(player.getGraveyard().getCards(game), game);
      player.getGraveyard().clear();
      player.getLibrary().shuffle();
      return true;
View Full Code Here

Examples of mage.players.Player.gainLife()

  public boolean apply(Game game, Ability source) {
    Permanent permanent = game.getPermanent(source.getFirstTarget());
    if (permanent != null) {
      Player player = game.getPlayer(permanent.getControllerId());
      if (player != null) {
        player.gainLife(permanent.getToughness().getValue(), game);
      }
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.gainLife()

                countersRemoved = ((EssenceBottleCost) cost).getRemovedCounters();
            }
        }
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            player.gainLife(countersRemoved * 2, game);
            return true;
        }
        return false;
    }
}
View Full Code Here

Examples of mage.players.Player.gainLife()

            }
            if (damageDone > 0) {
                Permanent source = game.getPermanentOrLKIBattlefield(sourceId);
                if (source != null && source.getAbilities().containsKey(LifelinkAbility.getInstance().getId())) {
                    Player player = game.getPlayer(source.getControllerId());
                    player.gainLife(damageAmount, game);
                }
                if (source != null && source.getAbilities().containsKey(DeathtouchAbility.getInstance().getId())) {
                    deathtouched = true;
                }
                if (dealtDamageByThisTurn == null) {
View Full Code Here

Examples of mage.players.Player.gainLife()

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

Examples of mage.players.Player.gainLife()

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            int amount = (Integer) getValue("damage");
            if (amount > 0) {
                controller.gainLife(amount, game);

            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.gainLife()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            player.gainLife(player.getLife(), game);
            return true;
        }
        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.