Examples of damage()


Examples of mage.players.Player.damage()

            permanent.damage(damagePer, source.getSourceId(), game, true, false);
          }
          else {
            Player player = game.getPlayer(targetId);
            if (player != null) {
              player.damage(damagePer, source.getSourceId(), game, false, true);
            }
          }
        }
        return true;
      }
View Full Code Here

Examples of mage.players.Player.damage()

          permanent.damage(damage, source.getSourceId(), game, true, false);
          return true;
        }
        Player targetPlayer = game.getPlayer(source.getTargets().get(1).getTargets().get(0));
        if (targetPlayer != null) {
          targetPlayer.damage(damage, source.getSourceId(), game, false, true);
          return true;
        }
        return false;
      }
    }
View Full Code Here

Examples of mage.players.Player.damage()

      permanent.damage(amount, source.getId(), game, true, false);
    }
    for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
      Player player = game.getPlayer(playerId);
      if (player != null)
        player.damage(amount, source.getId(), game, false, true);
    }
    return true;
  }

  @Override
View Full Code Here

Examples of mage.players.Player.damage()

    Permanent permanent = game.getPermanent(source.getFirstTarget());
    if (permanent != null) {
      Player player = game.getPlayer(permanent.getControllerId());
      if (player != null) {
        permanent.damage(4, source.getSourceId(), game, true, false);
        player.damage(2, source.getSourceId(), game, false, true);
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.damage()

      permanent.damage(amount, source.getId(), game, true, false);
    }
    for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
      Player player = game.getPlayer(playerId);
      if (player != null)
        player.damage(amount, source.getId(), game, false, true);
    }
    return true;
  }

  @Override
View Full Code Here

Examples of mage.players.Player.damage()

                return true;
            }

            Player player = game.getPlayer(targetPointer.getFirst(game, source));
            if (player != null) {
                player.damage(4, source.getSourceId(), game, false, true);
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.damage()

                    permanent.damage(multiTarget.getTargetAmount(target), source.getSourceId(), game, false, true);
                }
                else {
                    Player player = game.getPlayer(target);
                    if (player != null) {
                        player.damage(multiTarget.getTargetAmount(target), source.getSourceId(), game, false, true);
                    }
                }
            }
        }
        return true;
View Full Code Here

Examples of mage.players.Player.damage()

                    if (targetCreature != null) {
                        targetCreature.damage(amount, creature.getId(), game, false, true);
                    } else {
                        Player player = game.getPlayer(target);
                        if (player != null) {
                            player.damage(amount, creature.getId(), game, false, true);
                        }
                    }
                   
                }
            } 
View Full Code Here

Examples of mage.players.Player.damage()

            permanent.damage(2, sourceId, game, false, true);
            return true;
        }
        Player player = game.getPlayer(targetPointer.getFirst(game, source));
        if (player != null && sourceId != null) {
            player.damage(2, sourceId, game, false, true);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.damage()

                remainingDamage -= amount;
            }
            else {
                Player player = game.getPlayer(targetId);
                if (player != null) {
                    player.damage(amount, sourceId, game, false, true);
                    remainingDamage -= amount;
                }
            }
            targets.remove(targetId);
        }
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.