Skill #2706001

Abyssal Spear

Level 10

##2706000

CD 1s | Cost 1 | Attack

ID 2706010

Level 9

##2706000

CD 1s | Cost 1 | Attack

ID 2706009

Level 8

##2706000

CD 1s | Cost 1 | Attack

ID 2706008

Level 7

##2706000

CD 1s | Cost 1 | Attack

ID 2706007

Level 6

##2706000

CD 1s | Cost 1 | Attack

ID 2706006

Level 5

##2706000

CD 1s | Cost 1 | Attack

ID 2706005

Level 4

##2706000

CD 1s | Cost 1 | Attack

ID 2706004

Level 3

##2706000

CD 1s | Cost 1 | Attack

ID 2706003

Level 2

##2706000

CD 1s | Cost 1 | Attack

ID 2706002

Level 1

##2706000

CD 1s | Cost 1 | Attack

ID 2706001

Formulas & functions

CommonFun links

深渊之枪Lv 1-10 | buff | Buffs 137530

Formula source

function CommonFun.calcBuff_185(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local BleedAtk = srcUser:GetProperty("BleedAtk")
  local BleedDef2 = targetUser:GetProperty("BleedDef")
  local BleedDam = 1 + BleedAtk - BleedDef2
  if BleedDam <= 0 then
    BleedDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = (lv * a + b) * BleedDam * StateDam * CommonFun.calcAttrBlindRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
深渊之枪Lv 1-10 | buff | Buffs 137610

Formula source

-- Lua source unavailable --
深渊之枪Lv 1-10 | damage

Formula source

function CommonFun.calcDamage_67501(srcUser, targetUser, params, damageParam, logger)
  local Int = srcUser:GetProperty("Int")
  local Vit = srcUser:GetProperty("Vit")
  local MAtk = srcUser:GetProperty("MAtk")
  local MAtkPer = srcUser:GetProperty("MAtkPer")
  local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
  local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
  if 1 <= IgnoreMDef then
    IgnoreMDef = 1
  end
  local MRefine = srcUser:GetProperty("MRefine")
  local RangeDam = srcUser:GetProperty("RangeDam")
  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, params, damageParam)
  local targetDefElement = targetUser:GetProperty("DefAttr")
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local MDef2 = targetUser:GetProperty("MDef")
  local MDefPer2 = targetUser:GetProperty("MDefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local Int2 = targetUser:GetProperty("Int")
  local IntPer2 = targetUser:GetProperty("IntPer")
  local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
  local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
  local damChangePer = damageParam.damChangePer
  local BaseMAtk = Int + math.floor(Int * Int / 100)
  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2
  local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if damageParam.elementparam == 10 then
    local skilllv_ds = srcUser:GetLernedSkillLevel(2713)
    damChangePer = skilllv_ds
  end
  local A = ((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * (1 - RefineMDamReduc) * damChangePer * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * (1 + RangeDam)
  if skillID == 2718 then
    local Num = srcUser:GetBuffLayer(137570)
    local count = params.hitedCount
    if count == 1 then
      A = A * (1 + Num * 0.5)
    end
  end
  if skillID == 2706 then
    local GemValue = srcUser:GetGemValue(207141)
    A = A * (1 + GemValue / 100000)
  end
  if A <= 1 then
    return 1
  end
  if srcUser:HasBuffID(137540) then
    local skilllv_an = srcUser:GetLernedSkillLevel(2704)
    return A * (1 + skilllv_an * 0.2), CommonFun.DamageType.Crit
  end
  return A
end

Skill JSON (Level 10)

{
  "id": 2706010,
  "NameZh": "深渊之枪",
  "Level": 10,
  "Icon": "skill_2706001",
  "Cost": 1,
  "Desc": [
    {
      "id": 2706000,
      "params": [
        1000,
        100
      ]
    }
  ],
  "RollType": 2,
  "DamageType": 2,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 7,
  "Fire_EP": 3,
  "Target_EP": 2,
  "Attack_EP": 2,
  "CD": 1,
  "SkillCost": {
    "sp": 81
  },
  "DelayCD": 1,
  "Lead_Type": {
    "CCT": 0,
    "FCT": 4.5,
    "type": 2
  },
  "Logic": "SkillPointRange",
  "Logic_Param": {
    "count": 1,
    "effect": "sfx_magicsnake_yq_hit_prf,LowRange_B2",
    "interval": 1,
    "isCountTrap": 1,
    "loop": false,
    "no_select": 1,
    "range": 3,
    "range_num": 10
  },
  "Damage": [
    {
      "damChangePer": 10,
      "elementparam": 2,
      "type": 67501
    },
    {
      "damChangePer": 0,
      "elementparam": 10,
      "type": 67501
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Buff": {
    "enemy": [
      137530,
      137531,
      137610
    ]
  },
  "Pvp_buff": {
    "enemy": [
      137530,
      137531,
      137610
    ]
  },
  "CastAct": "reading",
  "AttackAct": [
    "use_skill4"
  ],
  "SE_attack": "Skill/skill_hero_snake_stoneattack_attack_01",
  "SE_hit": "Skill/skill_hero_snake_stoneattack_hit_01",
  "FashionAttackAct": "use_skill16",
  "description": {
    "chinesesimplified": "##2706000",
    "english": "##2706000",
    "german": "##2706000",
    "portuguese": "##2706000",
    "spanish": "##2706000"
  }
}