Piercing Shot
Lvl: 10 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3

Shoot continuously at a target, and deal Phy. ATK *1200% in Phy. DMG to enemies in the path with a 30% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.

Lvl: 9 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *1120% in Phy. DMG to enemies in the path with a 28% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 8 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *1040% in Phy. DMG to enemies in the path with a 26% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 7 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *960% in Phy. DMG to enemies in the path with a 24% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 6 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *880% in Phy. DMG to enemies in the path with a 22% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 5 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *800% in Phy. DMG to enemies in the path with a 20% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 4 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *720% in Phy. DMG to enemies in the path with a 18% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 3 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *640% in Phy. DMG to enemies in the path with a 16% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 2 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *560% in Phy. DMG to enemies in the path with a 14% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.
Lvl: 1 Attack Physical CD: 1 sec Skill Delay: 1 sec Range: 8 Cast Time: 3
• Shoot continuously at a target, and deal Phy. ATK *480% in Phy. DMG to enemies in the path with a 12% chance to make them bleed. Spend 1 bullet. Must be used with a pistol equipped.

Aesir

• Piercing Shot - Strengthen Piercing Shot DMG +6%.
• Piercing Shot - Ignore Piercing Shot ignores 20% of the target's Phy. DEF.

Formula

function CommonFun.calcDamage_17302(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Agi = srcUser:GetProperty("Agi")
  local Luk = srcUser:GetProperty("Luk")
  local Atk = srcUser:GetProperty("Atk")
  local AtkPer = srcUser:GetProperty("AtkPer")
  local DamIncrease = srcUser:GetProperty("DamIncrease")
  local IgnoreDef = 0
  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
  if targetUser.boss or targetUser.mini then
    IgnoreDef = IgnoreDef1
  else
    IgnoreDef = IgnoreDef1 + IgnoreDef2
  end
  if 1 <= IgnoreDef then
    IgnoreDef = 1
  end
  local Refine = srcUser:GetProperty("Refine")
  local Def2 = targetUser:GetProperty("Def")
  local DefPer2 = targetUser:GetProperty("DefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
  local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local AttrEffect2 = srcUser:GetProperty("AttrEffect")
  local bits2 = CommonFun.getBits(AttrEffect2)
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local damChangePer = damageParam.damChangePer
  local Rune = 1
  local Num1 = srcUser:GetRunePoint(173017_AESIR_PIERCING_SHOT_DMG_6)
  local Num2 = srcUser:GetRunePoint(173029_AESIR_DESPERADO_DMG_5)
  local Num4 = srcUser:GetRunePoint(173025_AESIR_PIERCING_SHOT_IGNORES_20_OF_THE_TARGET_S_PHY_DEF)
  local GemValue_wm1 = srcUser:GetGemValue(173061_DESPERADO_DMG_PERCENTAGE)
  local GemValue_wm2 = srcUser:GetGemValue(173062_DESPERADO_EACH_POINT_OF_AGI_DMG_PERCENTAGE)
  local GemDam_wm = 1 + GemValue_wm1 / 100000 + GemValue_wm2 / 100000 * Agi
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2223_STELLAR_HUNTER:CROSSFIRE then
    local GemValue = srcUser:GetGemValue(173101_CROSSFIRE_DMG_PERCENTAGE)
    local GemDam = 1 + GemValue / 100000
    damChangePer = (damChangePer + Agi / 30) * GemDam
  end
  local Pistol = 1
  local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
  if skillID == 2224_STELLAR_HUNTER:DESPERADO then
    damChangePer = (damChangePer + Agi / 20) * GemDam_wm
    Rune = 1 + Num2 * 0.05
    if srcUser:HasBuffID(45000_GOLD_LUX_PISTOL_:MAX_STACK_0) then
      Pistol = 1 + RefineLv * 0.01
    end
    if srcUser:HasBuffID(45010_GOLD_LUX_PISTOL_AFTER_PERFUSION_:MAX_STACK_0) then
      Pistol = 1 + RefineLv * 0.02
    end
  end
  if skillID == 2203_STELLAR_HUNTER:PIERCING_SHOT then
    Rune = 1 + Num1 * 0.06
    DefReduc = 1 - (1 - DefReduc) * (1 - Num4 * 0.2)
  end
  if skillID == 2241_STELLAR_HUNTER:CARNAGE_CAPOEIRA then
    local skilllv_wm = srcUser:GetLernedSkillLevel(2224_STELLAR_HUNTER:DESPERADO)
    local skilllv_sl = srcUser:GetLernedSkillLevel(2241_STELLAR_HUNTER:CARNAGE_CAPOEIRA)
    damChangePer = (0.5 * skilllv_wm + 5 + Agi / 20) * (0.3 + skilllv_sl * 0.01) * GemDam_wm
    Rune = 1 + Num2 * 0.05
    if srcUser:HasBuffID(45000_GOLD_LUX_PISTOL_:MAX_STACK_0) then
      Pistol = 1 + RefineLv * 0.01
    end
    if srcUser:HasBuffID(45010_GOLD_LUX_PISTOL_AFTER_PERFUSION_:MAX_STACK_0) then
      Pistol = 1 + RefineLv * 0.02
    end
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * Rune * Pistol
  local skilllv = srcUser:GetLernedSkillLevel(2240_STELLAR_HUNTER:CHAIN_ACTION)
  local DoubleRate = skilllv * 3
  if srcUser:HasBuffID(90004654_GOLD_LAW_ENFORCER_1_T5_:MAX_STACK_0) then
    DoubleRate = DoubleRate + 20
  end
  if CommonFun.IsInRate(DoubleRate, srcUser:GetRandom()) then
    if srcUser.isServerCall then
      srcUser:AddBuff(133660_CHAIN_ACTION_:MAX_STACK_0, srcUser:GetGuid())
    end
    return A * 2, CommonFun.DamageType.Crit
  end
  if A <= 1 then
    return 1
  end
  return A
end

Enemy 7020

function CommonFun.calcBuff_7020(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local skilllv = srcUser:GetLernedSkillLevel(a)
  local A = MaxHp * (skilllv * b + c)
  return A
end

Enemy

{
  "id": 133510,
  "BuffName": "Piercing Shot (Bleeding effect)",
  "BuffRate": {
    "Odds": {
      "a": 2,
      "b": 10,
      "type": 185
    }
  },
  "BuffEffect": {
    "id": [
      133692
    ],
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 133692,
  "BuffName": "Bleed Effect",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 100,
      "type": 185
    }
  },
  "BuffEffect": {
    "id": [
      133693,
      133694
    ],
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 133693,
  "BuffName": "Bleeding Effect [HP Loss]",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "StatusChange",
    "AtkPer": -0.25,
    "SkillASPD": -0.25,
    "AttrEffect": [
      3,
      4
    ],
    "StateEffect": "2_Blood"
  },
  "BuffStateID": 120032
}

Enemy

{
  "id": 133694,
  "BuffName": "HP Loss Effect",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "Hp": {
      "a": 2265,
      "b": -0.001,
      "c": -0.005,
      "type": 7020
    },
    "type": "HpReduce",
    "delHpPer": 0.2,
    "StateEffect": "2_Blood",
    "checkSpecialHide": 2
  }
}

Formula

{
  "CD": 1,
  "id": 2203010,
  "Buff": {
    "enemy": [
      133510
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2203000,
      "params": [
        1200,
        30
      ]
    }
  ],
  "Icon": "skill_2203001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillTargetRect",
  "Damage": [
    {
      "type": 17302,
      "damChangePer": 12
    }
  ],
  "DescId": "##1124280",
  "NameZh": "##1112860",
  "CastAct": "skill_ready",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "DelayCD": 1,
  "Fire_EP": 2,
  "Pvp_buff": {
    "enemy": [
      133510
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "attack"
  ],
  "Attack_EP": 2,
  "Lead_Type": {
    "CCT": 0,
    "FCT": 3,
    "type": 2
  },
  "SE_attack": "Skill/skil_gunner_15",
  "SkillCost": [
    {
      "num": 1,
      "specialType": 4
    }
  ],
  "SkillType": "Attack",
  "Target_EP": 3,
  "DamageType": 1,
  "Logic_Param": {
    "width": 2,
    "distance": 8,
    "no_select": 1,
    "range_num": 10,
    "forward_offset": 0
  },
  "Launch_Range": 8,
  "PreCondition": [
    {
      "type": 2,
      "itemtype": 310
    }
  ]
}