Skill #28001

Spiral Pierce

Make a penetrating attack against the current target every once in a while.

Level 20

##28000

CD 4s | Cost 1 | Attack

ID 28020

Level 19

##28000

CD 4s | Cost 1 | Attack

ID 28019

Level 18

##28000

CD 4s | Cost 1 | Attack

ID 28018

Level 17

##28000

CD 4s | Cost 1 | Attack

ID 28017

Level 16

##28000

CD 4s | Cost 1 | Attack

ID 28016

Level 15

##28000

CD 4s | Cost 1 | Attack

ID 28015

Level 14

##28000

CD 4s | Cost 1 | Attack

ID 28014

Level 13

##28000

CD 4s | Cost 1 | Attack

ID 28013

Level 12

##28000

CD 4s | Cost 1 | Attack

ID 28012

Level 11

##28000

CD 4s | Cost 1 | Attack

ID 28011

Level 10

##28000

CD 4s | Cost 1 | Attack

ID 28010

Level 9

##28000

CD 4s | Cost 1 | Attack

ID 28009

Level 8

##28000

CD 4s | Cost 1 | Attack

ID 28008

Level 7

##28000

CD 4s | Cost 1 | Attack

ID 28007

Level 6

##28000

CD 4s | Cost 1 | Attack

ID 28006

Level 5

##28000

CD 4s | Cost 1 | Attack

ID 28005

Level 4

##28000

CD 4s | Cost 1 | Attack

ID 28004

Level 3

##28000

CD 4s | Cost 1 | Attack

ID 28003

Level 2

##28000

CD 4s | Cost 1 | Attack

ID 28002

Level 1

##28000

CD 4s | Cost 1 | Attack

ID 28001

Formulas & functions

CommonFun links

Spiral PierceLv 1-20 | buff | Buffs 80140, 10790

Formula source

function CommonFun.calcBuff_130(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local StunAtk = srcUser:GetProperty("StunAtk")
  local StunDef2 = targetUser:GetProperty("StunDef")
  local StunDam = 1 + StunAtk - StunDef2
  if StunDam <= 0 then
    StunDam = 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) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
Spiral PierceLv 1-20 | buff | Buffs 117660, 117661

Formula source

-- Lua source unavailable --
Spiral PierceLv 1-20 | damage

Formula source

function CommonFun.calcDamage_1301(srcUser, targetUser, params, damageParam, logger)
  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 WeaponType = srcUser:GetEquipedWeaponType()
  local BaseLv = srcUser.BaseLv
  local Refine = srcUser:GetProperty("Refine")
  local damChangePer = damageParam.damChangePer
  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
  local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  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 = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
  local AtkFinal = (Atk - BaseAtk) * (1 + AtkPer)
  local sizeCorrection = 1
  if nil ~= CommonFun.Shape then
    if CommonFun.Shape.S == targetUser.shape then
      sizeCorrection = 1.3
    elseif CommonFun.Shape.M == targetUser.shape then
      sizeCorrection = 1
    elseif CommonFun.Shape.L == targetUser.shape then
      sizeCorrection = 0.8
    end
  end
  local WeaponType_value = 0
  if WeaponType == 170 then
    WeaponType_value = 2
  else
    WeaponType_value = 0.5
  end
  local Weapon = srcUser:GetEquipedID(7)
  local calcfbzq = 1
  if Weapon == 40041 or Weapon == 140041 then
    calcfbzq = 1.1
  end
  if Weapon == 40055 or Weapon == 140055 then
    calcfbzq = calcfbzq + 0.15
  end
  local Sign = 1
  local Num1 = targetUser:GetBuffLayer(117660)
  local fromid = targetUser:GetBuffFromID(117660)
  local guid = srcUser:GetGuid()
  local skilllv_1 = srcUser:GetLernedSkillLevel(1267)
  skilllv_1 = math.min(skilllv_1, 5)
  local GemValue = srcUser:GetGemValue(11131)
  if fromid == guid then
    Sign = 1 + (skilllv_1 * 0.01 + 0.02 + GemValue / 100000) * Num1
  end
  local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
  local GemValue = srcUser:GetGemValue(11072)
  local GemDam = 1 + GemValue / 100000
  local skilllv_ha = srcUser:GetLernedSkillLevel(3005)
  local StateEffect = targetUser:GetProperty("StateEffect")
  local bits2 = CommonFun.getBits(StateEffect)
  local Heian = 1
  if bits2[CommonFun.StateEffect.Dark] == 1 then
    Heian = 1 + skilllv_ha * 0.04
  end
  local A = (((Str / 4) ^ 2 + WeaponType_value * AtkFinal * elementparam * bodyparam) * damChangePer + Refine * 15 + BaseLv * 15) * raceparam * bossparam * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) * (1 - DamReduc2) * sizeCorrection * elementparam2 * bossparam2 * calcfbzq * Sign * GemDam * Heian
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 20)

{
  "id": 28020,
  "NameZh": "螺旋击刺",
  "Level": 20,
  "Icon": "skill_28001",
  "Cost": 1,
  "PeakLevel": 10,
  "Desc": [
    {
      "id": 28000,
      "params": [
        1000,
        2
      ]
    }
  ],
  "RollType": 1,
  "SkillHit": 0.5,
  "DamageType": 1,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 2,
  "Fire_EP": 3,
  "Target_EP": 3,
  "Attack_EP": 5,
  "CD": 4,
  "SkillCost": {
    "sp": 30
  },
  "DelayCD": 0.5,
  "PreCondition": [
    {
      "itemtype": 170,
      "type": 2
    }
  ],
  "Lead_Type": {
    "ReadyTime": 0.5,
    "type": 1
  },
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "damChangePer": 10,
      "type": 1301
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 4
  },
  "Buff": {
    "enemy": [
      80140,
      117660,
      117661
    ],
    "self": [
      124122
    ]
  },
  "Pvp_buff": {
    "enemy": [
      80140,
      117660,
      117661
    ],
    "self": [
      124122
    ]
  },
  "CastAct": "skill_ready",
  "AttackAct": [
    "use_skill"
  ],
  "SE_cast": "Skill/Magic_cast",
  "SE_attack": "Skill/skill_weapon_spear_stab_attack",
  "SE_hit": "Skill/skill_weapon_sword_hit",
  "description": {
    "chinesesimplified": "##28000",
    "english": "##28000",
    "german": "##28000",
    "portuguese": "##28000",
    "spanish": "##28000"
  }
}