Abyssal Spear
Lvl: 1 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 54 Range: 7 Cast Time: 3.6

Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*550% Earth M.DMG to enemies within 3m, removing invisibility. A 55% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.

Lvl: 9 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 78 Range: 7 Cast Time: 4.4
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*950% Earth M.DMG to enemies within 3m, removing invisibility. A 95% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 8 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 75 Range: 7 Cast Time: 4.3
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*900% Earth M.DMG to enemies within 3m, removing invisibility. A 90% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 7 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 72 Range: 7 Cast Time: 4.2
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*850% Earth M.DMG to enemies within 3m, removing invisibility. A 85% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 6 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 69 Range: 7 Cast Time: 4.1
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*800% Earth M.DMG to enemies within 3m, removing invisibility. A 80% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 5 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 66 Range: 7 Cast Time: 4
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*750% Earth M.DMG to enemies within 3m, removing invisibility. A 75% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 4 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 63 Range: 7 Cast Time: 3.9
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*700% Earth M.DMG to enemies within 3m, removing invisibility. A 70% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 3 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 60 Range: 7 Cast Time: 3.8
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*650% Earth M.DMG to enemies within 3m, removing invisibility. A 65% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 2 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 57 Range: 7 Cast Time: 3.7
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*600% Earth M.DMG to enemies within 3m, removing invisibility. A 60% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.
Lvl: 1 Attack Magic CD: 1 sec Skill Delay: 1 sec SP: 54 Range: 7 Cast Time: 3.6
• Turn rocks within the range into hard spears that burst out of the ground beneath the target, dealing M.ATK*550% Earth M.DMG to enemies within 3m, removing invisibility. A 55% chance to inflict bleed. When attacking Lv.1 Earth armor, ignore the elemental counter.

Formula

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, targetUser, 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_ARCHBISHOP:SNAKE_POISON)
    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_ARCHBISHOP:FIRE_BREATH then
    local Num = srcUser:GetBuffLayer(137570_SERPENT_ECHO_:MAX_STACK_3)
    local count = params.hitedCount
    if count == 1 then
      A = A * (1 + Num * 0.5)
    end
  end
  if skillID == 2706_ARCHBISHOP:ABYSSAL_SPEAR then
    local GemValue = srcUser:GetGemValue(207141_ABYSSAL_SPEAR_DMG_PERCENTAGE)
    A = A * (1 + GemValue / 100000)
  end
  if A <= 1 then
    return 1
  end
  if srcUser:HasBuffID(137540_SURGING_ARCANE_:MAX_STACK_10) then
    local skilllv_an = srcUser:GetLernedSkillLevel(2704_ARCHBISHOP:DISASTER_PANIC)
    return A * (1 + skilllv_an * 0.2), CommonFun.DamageType.Crit
  end
  return A
end

Enemy 6

function CommonFun.calcBuff_6(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = MaxHp * (a + c) + b
  if 0 < A or a == 0 then
    return A
  end
  if srcUser:GetNpcID() == 0 and targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) and targetUser.boss == false and targetUser.mini == false then
    return 0
  end
  if srcUser:GetNpcID() == 0 and (targetUser.boss or targetUser.mini) then
    local Vit = srcUser:GetProperty("Vit")
    local MAtk = srcUser:GetProperty("MAtk")
    local MAtkPer = srcUser:GetProperty("MAtkPer")
    local Refine = srcUser:GetProperty("Refine")
    local MRefine = srcUser:GetProperty("MRefine")
    local Def2 = targetUser:GetProperty("Def")
    local DefPer2 = targetUser:GetProperty("DefPer")
    local MDef2 = targetUser:GetProperty("MDef")
    local MDefPer2 = targetUser:GetProperty("MDefPer")
    local Vit2 = targetUser:GetProperty("Vit")
    local VitPer2 = targetUser:GetProperty("VitPer")
    local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
    local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
    local Int2 = targetUser:GetProperty("Int")
    local IntPer2 = targetUser:GetProperty("IntPer")
    local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
    local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
    local Str = srcUser:GetProperty("Str")
    local Dex = srcUser:GetProperty("Dex")
    local Luk = srcUser:GetProperty("Luk")
    local Atk = srcUser:GetProperty("Atk")
    local AtkPer = srcUser:GetProperty("AtkPer")
    local DamIncrease = srcUser:GetProperty("DamIncrease")
    local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
    local IgnoreDef = srcUser:GetProperty("IgnoreDef")
    if 1 <= IgnoreDef then
      IgnoreDef = 1
    end
    local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
    if 1 <= IgnoreMDef then
      IgnoreMDef = 1
    end
    local raceparam = 1
    local srcRace = srcUser.race
    local targetRace = targetUser.race
    if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
    elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
      targetRace = 2
    end
    if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
    elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
      srcRace = 2
    end
    if nil == CommonFun.RaceProps[targetRace] then
      return 0
    end
    if nil == CommonFun.RaceProps[srcRace] then
      return 0
    end
    local raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
    local raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
    local raceparam = 1 + raceInc - raceRed
    if raceparam <= 0.1 then
      raceparam = 0.1
    end
    local MAtkFinal = MAtk * (1 + MAtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    local AtkFinal = Atk * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    if MAtkFinal <= AtkFinal then
      local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
      A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * a * 100 * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2) + b
    else
      local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
      A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * a * 100 * (1 - RefineMDamReduc) * (1 + MDamIncrease) - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2) + b
    end
  end
  local AttrFunction = srcUser:GetProperty("AttrFunction")
  local bitfunc = CommonFun.getBits(AttrFunction)
  if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
    A = 0
  end
  if CommonFun.checkAttrFunctionMiss(targetUser, srcUser) then
    A = 0
  end
  if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
    A = 0
  end
  if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
    A = -1
  end
  if targetUser:DamageAlways1() then
    A = -1
  end
  return A
end

Enemy

{
  "id": 118331,
  "BuffDesc": "Bleeding: Atk and Atk Spd down. Drains HP",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Bleeding Effect [HP Loss]",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "StatusChange",
    "AtkPer": -0.25,
    "SkillASPD": -0.25,
    "AttrEffect": [
      3,
      4
    ],
    "StateEffect": "2_Blood"
  },
  "BuffStateID": 120032
}

Enemy

{
  "id": 118332,
  "BuffName": "HP Loss Effect",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "Hp": {
      "a": -0.005,
      "b": -5,
      "type": 6
    },
    "type": "HpReduce",
    "delHpPer": 0.2,
    "StateEffect": "2_Blood"
  }
}

Enemy

{
  "id": 137530,
  "BuffName": "Earth Grave (Bleed Effect)",
  "BuffRate": {
    "Odds": {
      "a": 5,
      "b": 50,
      "type": 185
    }
  },
  "BuffEffect": {
    "id": [
      118331,
      118332
    ],
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 137531,
  "BuffName": "Earth Grave (Hidden Break)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "Disperse",
    "value": "Hide"
  },
  "BuffStateID": 117450
}

Enemy

{
  "id": 137610,
  "BuffDesc": "Reduces MOV SPD and MOV SPD cap",
  "BuffIcon": "skillbuff_2713001",
  "BuffName": "Toxic Sand",
  "BuffRate": {
    "Odds": {
      "a": 2713,
      "b": 100,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AttrChange",
    "MoveSpdPer": {
      "a": 2713,
      "b": -0.01,
      "c": -0.1,
      "type": 8
    },
    "limit_layer": 3,
    "MoveSpd_Limit": {
      "a": 2713,
      "b": 0.02,
      "c": 0.1,
      "type": 8
    }
  }
}

Formula

{
  "CD": 1,
  "id": 2706001,
  "Buff": {
    "enemy": [
      137530,
      137531,
      137610
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2706000,
      "params": [
        550,
        55
      ]
    }
  ],
  "Icon": "skill_2706001",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillPointRange",
  "Damage": [
    {
      "type": 67501,
      "damChangePer": 5.5,
      "elementparam": 2
    },
    {
      "type": 67501,
      "damChangePer": 0,
      "elementparam": 10
    }
  ],
  "DescId": "##2826661",
  "NameZh": "##2826660",
  "NextID": 2706002,
  "SE_hit": "Skill/skill_hero_snake_stoneattack_hit_01",
  "CastAct": "reading",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "DelayCD": 1,
  "Fire_EP": 3,
  "Pvp_buff": {
    "enemy": [
      137530,
      137531,
      137610
    ]
  },
  "RollType": 2,
  "AttackAct": [
    "use_skill4"
  ],
  "Attack_EP": 2,
  "Contidion": {
    "skillid": 2705005
  },
  "Lead_Type": {
    "CCT": 0,
    "FCT": 3.6,
    "type": 2
  },
  "SE_attack": "Skill/skill_hero_snake_stoneattack_attack_01",
  "SkillCost": {
    "sp": 54
  },
  "SkillType": "Attack",
  "Target_EP": 2,
  "DamageType": 2,
  "Logic_Param": {
    "loop": false,
    "count": 1,
    "range": 3,
    "effect": "sfx_magicsnake_yq_hit_prf,LowRange_B2",
    "interval": 1,
    "no_select": 1,
    "range_num": 10,
    "isCountTrap": 1
  },
  "Launch_Range": 7,
  "FashionAttackAct": "use_skill16"
}