Ejemplo n.º 1
0
  /** @return the Physical Attack range (base+modifier) of the L2Character. */
  public final int getPhysicalAttackRange() {
    final L2Weapon weapon = _activeChar.getActiveWeaponItem();
    int baseAttackRange;
    if (_activeChar.isTransformed() && _activeChar.isPlayer()) {
      baseAttackRange =
          _activeChar.getTransformation().getBaseAttackRange(_activeChar.getActingPlayer());
    } else if (weapon != null) {
      baseAttackRange = weapon.getBaseAttackRange();
    } else {
      baseAttackRange = _activeChar.getTemplate().getBaseAttackRange();
    }

    return (int) calcStat(Stats.POWER_ATTACK_RANGE, baseAttackRange, null, null);
  }