Wind Shuriken - Swift Shadow
Lvl: 10 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 80 Range: 6

Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *150% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped

Lvl: 9 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 76 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *145% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 8 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 72 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *140% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 7 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 68 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *135% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 6 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 64 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *130% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 5 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 60 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *125% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 4 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 56 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *120% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 3 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 52 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *115% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 2 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 48 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *110% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped
Lvl: 1 Attack Physical CD: 3 sec Skill Delay: 1.5 sec SP: 44 Range: 6
• Throw Wind Dart Cast over a specific area, dealing Phy. DMG of Wind Dart Cast *105% to all enemy units within 3 meters and clearing bowman and rogue types of traps within range. Wind Dart will last for 5 second. A Wind Monster type of weapon must be equipped

Formula

function CommonFun.calcDamage_16303(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 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 = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 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, params)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local damChangePer = damageParam.damChangePer
  local NumDam = 1
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2041_RANGER:WIND_DART_CAST then
    local count = params.hitedCount
    local Rune = srcUser:GetRunePoint(163038_AESIR_WIND_DART_CAST_DMG_6)
    local GemValue = srcUser:GetGemValue(163051_WIND_DART_CAST_DMG_PERCENTAGE)
    local GemDam = 1 + GemValue / 100000
    local GemValueNum = srcUser:GetGemValue(163052_WIND_DART_CAST_EACH_ENEMY_UNIT_S_ADDITIONAL_DMG_PERCENTAGE)
    local GemNum = GemValueNum / 100000
    if srcUser:HasBuffID(21630050_WIND_DART_CAST_DAMAGE_UP_:MAX_STACK_0) and srcUser:GetRangeEnemy(3) == 0 then
      GemDam = GemDam * 1.3
    end
    NumDam = (1 + math.max(count - 1, 0) * (0.1 + GemNum)) * (1 + Rune * 0.06) * GemDam
    local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
    if srcUser:HasBuffID(44400_WIND_SHURIKEN_:MAX_STACK_0) then
      NumDam = NumDam * (RefineLv7 * 0.01 + 1)
    end
    if srcUser:HasBuffID(44410_WIND_SHURIKEN_RANKA_:MAX_STACK_0) then
      NumDam = NumDam * (RefineLv7 * 0.02 + 1)
    end
    if srcUser:HasBuffID(55100_WIND_DART_CAST_CARD_:MAX_STACK_0) then
      NumDam = NumDam + 0.01 * math.floor(Dex / 10)
    end
  end
  if skillID == 2055_RANGER:WIND_SHURIKEN_SWIFT_SHADOW or skillID == 2080_RANGER:WIND_SHURIKEN_SWIFT_SHADOW then
    local count = params.hitedCount
    local Rune = srcUser:GetRunePoint(163038_AESIR_WIND_DART_CAST_DMG_6)
    local GemValue = srcUser:GetGemValue(163051_WIND_DART_CAST_DMG_PERCENTAGE)
    local GemDam = 1 + GemValue / 100000
    local GemValueNum = srcUser:GetGemValue(163052_WIND_DART_CAST_EACH_ENEMY_UNIT_S_ADDITIONAL_DMG_PERCENTAGE)
    local GemNum = GemValueNum / 100000
    if srcUser:HasBuffID(21630050_WIND_DART_CAST_DAMAGE_UP_:MAX_STACK_0) and srcUser:GetRangeEnemy(3) == 0 then
      GemDam = GemDam * 1.3
    end
    NumDam = (1 + math.max(count - 1, 0) * (0.1 + GemNum)) * (1 + Rune * 0.06) * GemDam
    local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
    if srcUser:HasBuffID(44400_WIND_SHURIKEN_:MAX_STACK_0) then
      NumDam = NumDam * (RefineLv7 * 0.01 + 1)
    end
    if srcUser:HasBuffID(44410_WIND_SHURIKEN_RANKA_:MAX_STACK_0) then
      NumDam = NumDam * (RefineLv7 * 0.02 + 1)
    end
    if srcUser:HasBuffID(55100_WIND_DART_CAST_CARD_:MAX_STACK_0) then
      NumDam = NumDam + 0.01 * math.floor(Dex / 10)
    end
    if srcUser:HasBuffID(90004644_WIND_SHURIKEN_SWIFT_SHADOW_1_T5_:MAX_STACK_0) then
      NumDam = NumDam + 0.1
    end
    local skilllv1 = srcUser:GetLernedSkillLevel(2041_RANGER:WIND_DART_CAST)
    local skilllv2 = srcUser:GetLernedSkillLevel(2055_RANGER:WIND_SHURIKEN_SWIFT_SHADOW)
    local skilllv3 = srcUser:GetLernedSkillLevel(2076_RANGER:WIND_SHURIKEN_SWIFT_SHADOW_STRENGTHENING)
    local Master = srcUser:GetMasterUser()
    if Master ~= nil then
      skilllv1 = Master:GetLernedSkillLevel(2041_RANGER:WIND_DART_CAST)
      skilllv2 = Master:GetLernedSkillLevel(2055_RANGER:WIND_SHURIKEN_SWIFT_SHADOW)
      skilllv3 = Master:GetLernedSkillLevel(2076_RANGER:WIND_SHURIKEN_SWIFT_SHADOW_STRENGTHENING)
    end
    damChangePer = (skilllv1 * 0.5 + 5.7) * (1 + skilllv2 * 0.05) * (1 + skilllv3 * 0.04)
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * NumDam
  if skillID == 2029_SNIPER:PETAL_BURST then
    local Rune = srcUser:GetRunePoint(163014_AESIR_PETAL_BURST_DMG_6)
    local GemValue = srcUser:GetGemValue(163141_PETAL_BURST_DMG_PERCENTAGE)
    local GemDam = 1 + GemValue / 100000
    local Burn = 1
    local StateEffect = targetUser:GetProperty("StateEffect")
    local bits = CommonFun.getBits(StateEffect)
    local GemState = srcUser:GetGemValue(163142_PETAL_BURST_ADDITIONALLY_INFLICT_PERCENTAGE_DMG_ON_BURNING_ENEMY_UNITS)
    if bits[CommonFun.StateEffect.Burn] == 1 then
      Burn = 1 + GemState / 100000
    end
    A = A * (1 + Rune * 0.06) * GemDam * Burn
  end
  if skillID == 2020_SNIPER:DART_CAST then
    local GemValue = srcUser:GetGemValue(163112_DART_CAST_DMG_PERCENTAGE)
    local GemDam = 1 + GemValue / 100000
    A = A * GemDam
  end
  if A <= 1 then
    return 1
  end
  return A
end

Self

{
  "id": 133055,
  "BuffName": "Use [Wind Shuriken - Swift Shadow] use Thousand Shadows",
  "BuffRate": {
    "Odds": {
      "a": 90004644,
      "b": 0,
      "c": 30,
      "type": 8160
    }
  },
  "BuffEffect": {
    "id": [
      133056
    ],
    "Odds": 100,
    "type": "AddBuff"
  }
}
Ninjutsu - Thousand Shadows

Self

{
  "id": 133056,
  "BuffName": "Auto attacks use Thousand Shadows",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "id": 2026001,
    "Odds": 100,
    "type": "UseSkill",
    "IsActive": 0
  }
}

Enemy

{
  "id": 133350,
  "BuffDesc": "Decrease Def",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Wind Shuriken - (Ignore)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 2,
  "BuffEffect": {
    "type": "AttrChange",
    "DefPer": {
      "a": 0,
      "b": 0,
      "c": 163171,
      "type": 5020
    }
  }
}

Formula

{
  "CD": 3,
  "id": 2055010,
  "Buff": {
    "self": [
      133055
    ],
    "enemy": [
      133350
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2055000,
      "params": [
        150
      ]
    }
  ],
  "Icon": "skill_2055001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillPointRange",
  "Damage": [
    {
      "type": 16303,
      "damChangePer": 0
    }
  ],
  "DescId": "##1131168",
  "NameZh": "##533865",
  "SE_hit": "Skill/sword_hit",
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "DelayCD": 1.5,
  "Fire_EP": 6,
  "ItemCost": [
    {
      "id": 12903,
      "count": 2100
    }
  ],
  "Pvp_buff": {
    "self": [
      133055
    ],
    "enemy": [
      133350
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "use_skill"
  ],
  "Attack_EP": 0,
  "SE_attack": "Skill/ninjia_fengmoluanhua",
  "SkillCost": {
    "sp": 80
  },
  "SkillType": "Attack",
  "Target_EP": 3,
  "DamageType": 1,
  "Logic_Param": {
    "emit": {
      "type": 1,
      "speed": 60,
      "effect": "Eff_Ninja_Darts_bullet",
      "single_fire": true
    },
    "count": 5,
    "range": 3,
    "interval": 1,
    "no_select": 1,
    "range_num": 15,
    "forceClear": [
      117,
      140,
      138,
      201,
      120,
      202,
      116,
      139,
      122,
      141,
      1247,
      1251,
      4004,
      4015,
      4005,
      4006,
      4007,
      4014,
      1385,
      1398,
      1434,
      1140,
      1141,
      1142,
      1143
    ],
    "isCountTrap": 1,
    "trap_effect": "Eff_Ninja_Darts_floor,LowRange_B2"
  },
  "Launch_Range": 6,
  "PreCondition": [
    {
      "type": 2,
      "itemtype": 300
    }
  ],
  "ExtraMaxLevel": 1
}